"; }); // Allow longer string lengths after upgrade to utf8mb4 Schema::defaultStringLength(191); // Set morph-map due to namespace changes Relation::morphMap([ 'BookStack\\Bookshelf' => Bookshelf::class, 'BookStack\\Book' => Book::class, 'BookStack\\Chapter' => Chapter::class, 'BookStack\\Page' => Page::class, ]); // View Composers View::composer('entities.breadcrumbs', BreadcrumbsViewComposer::class); } /** * Register any application services. * * @return void */ public function register() { $this->app->singleton(SettingService::class, function ($app) { return new SettingService($app->make(Setting::class), $app->make(Repository::class)); }); $this->app->singleton(SocialAuthService::class, function ($app) { return new SocialAuthService($app->make(SocialiteFactory::class), $app->make(LoginService::class)); }); $this->app->singleton(CspService::class, function ($app) { return new CspService(); }); $this->app->bind(HttpClientInterface::class, function($app) { return new Client(['timeout' => 3]); }); } }