app->bind(LocationRepository::class, function ($app) { return new LocationRepository(new Location()); }); $this->app->bind(UpdateService::class, function ($app) { return new UpdateService(new LocationRepository(new Location())); }); $this->app->bind(MaintenanceService::class, function ($app) { return new MaintenanceService(new Location()); }); } /** * Bootstrap any application services. */ public function boot(): void { // } }