app->bind( Vite::class, ViteService::class, ); $this->app->singleton( InstallationService::class, fn () => new InstallationService, ); $this->app->singleton( SettingsService::class, fn ($app) => new SettingsService($app->make(InstallationService::class)), ); $this->app->singleton( PermissionsService::class, fn () => new PermissionsService, ); $this->app->singleton( RconService::class, fn () => new RconService, ); } /** * Bootstrap any application services. */ public function boot(): void { Table::configureUsing(function (Table $table) { $table->paginated([10, 25, 50]); }); $settingsService = app(SettingsService::class); $badgePath = $settingsService->getOrDefault('badge_path_filesystem', '/var/www/gamedata/c_images/album1584'); Config::set('filesystems.disks.badges.root', $badgePath); $adsPath = $settingsService->getOrDefault('ads_path_filesystem', '/var/www/gamedata/custom'); Config::set('filesystems.disks.ads.root', $adsPath); WebsiteDrawBadge::observe(WebsiteDrawBadgeObserver::class); } }