app->scoped(GlobalSettingRepository::class); } /** * Bootstrap any application services. */ public function boot(): void { Auth::provider('tenant-users', function ($app, array $config) { return new TenantUserProvider( $app['hash'], $config['model'] ); }); } }