app->bind(SettingsService::class, function ($app) { return new SettingsService(); }); $this->app->bind(AuthService::class, function ($app) { return new AuthService(new SettingsService()); }); $this->app->bind(ContentService::class, function ($app) { return new ContentService(); }); $this->app->bind(ThemeService::class, function ($app) { return new ThemeService(new SettingsService()); }); $this->app->bind(PaginateService::class, function ($app) { return new PaginateService(new ContentService()); }); $this->app->bind(StringService::class, function ($app) { return new StringService(); }); $this->app->bind(DocService::class, function ($app) { return new DocService(); }); } /** * Bootstrap services. */ public function boot(): void { $this->app->bind(PageRepositoryInterface::class, PageRepository::class); } }