¨4.0.1¨
This commit is contained in:
@@ -16,9 +16,21 @@ class AppServiceProvider extends ServiceProvider
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
public function boot(): void
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Configure default String length of the generated migrations
|
||||
|--------------------------------------------------------------------------
|
||||
| Laravel uses the utf8mb4 character set by default, which includes
|
||||
| support for storing "emojis" in the database. if you are running a
|
||||
| version of MySQL older than the 5.7.7 release or MariaDB older than
|
||||
| the 10.2.2 release, you need to configure the default string length
|
||||
| generated by migrations in order for MySQL to create indexes for
|
||||
| them.
|
||||
*/
|
||||
Schema::defaultStringLength(191);
|
||||
|
||||
Paginator::useBootstrap();
|
||||
|
||||
if (Request::secure()) {
|
||||
@@ -26,14 +38,15 @@ class AppServiceProvider extends ServiceProvider
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
public function register(): void
|
||||
{
|
||||
if (! config('app.installed')) {
|
||||
if (!config('app.installed')) {
|
||||
$this->app->register(DotenvEditorServiceProvider::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user