singleton(DashboardFactory::class, fn () => new DashboardFactory()); } /** * Bootstrap services. * * @return void */ public function boot() { app(Router::class)->middleware(['web', 'auth:web'])->group(function ($router) { $router->get('/', DashboardComponent::class)->name('home'); }); } }