Файл: app/Providers/AppServiceProvider.php
Строк: 26
<?php
namespace AppProviders;
use AppObserversUserObserver;
use AppObserversWebsiteObserver;
use AppModelsUser;
use AppModelsWebsite;
use IlluminatePaginationPaginator;
use IlluminateSupportServiceProvider;
use IlluminateSupportFacadesSchema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
// Fix for utf8mb migration @https://laravel.com/docs/master/migrations#creating-indexes
Schema::defaultStringLength(191);
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Paginator::useBootstrap();
User::observe(UserObserver::class);
Website::observe(WebsiteObserver::class);
}
}