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'); }); app(DashboardFactory::class)->register(AgeGroupCountBlock::class); app(DashboardFactory::class)->register(MemberPaymentBlock::class); app(DashboardFactory::class)->register(TestersBlock::class); app(DashboardFactory::class)->register(EfzPendingBlock::class); app(DashboardFactory::class)->register(PsPendingBlock::class); } }