app->singleton('view.finder', function ($app) { return new ThemeViewFinder( $app['files'], $app['config']['view.paths'], null ); }); $this->app->singleton(ViewRenderEventManager::class); } /** * Bootstrap services. * * @return void */ public function boot() { $this->loadMigrationsFrom(__DIR__.'/../Database/Migrations'); Blade::directive('bagistoVite', function ($expression) { return "setBagistoVite({$expression})->toHtml(); ?>"; }); } }