singleton(SettingFactory::class, fn () => new SettingFactory()); } /** * Bootstrap services. * * @return void */ public function boot() { app(SettingFactory::class)->register(InvoiceSettings::class); app(SettingFactory::class)->register(MailgatewaySettings::class); app(SettingFactory::class)->register(NamiSettings::class); } }