<?php namespace App\Dashboard; use Illuminate\Support\ServiceProvider; class DashboardServiceProvider extends ServiceProvider { /** * Register services. * * @return void */ public function register() { app()->singleton(DashboardFactory::class, fn () => new DashboardFactory()); } /** * Bootstrap services. * * @return void */ public function boot() { } }