alias(SchemaManager::class, \App\Voyager\SchemaManager::class); $loader->alias(DataType::class, \App\Voyager\Models\DataType::class); } /** * Bootstrap any application services. */ public function boot() { if (config('app.env') === 'production') { \URL::forceScheme('https'); } Blade::directive('dynamicContent', function ($page) { return "getLocale(); ?>"; }); Blade::directive('sectionContent', function ($expression) { return "\$currentLocale)): ?> {!! \$sections[$expression]->\$currentLocale !!} "; }); view()->composer('layout.header', function ($view) { $view->with('current_locale', app()->getLocale()); $view->with('available_locales', config('app.available_locales')); }); if (\Auth::guard('web')->check()) { \Debugbar::enable(); } } }