1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

Cleaned up location controller, responsive fix

The Location Controller was getting too heavy so an Update and
Maintenance service class was created to offload most of it's
functionality. Location upating was moved to LocationRepository

There was also a small issue with responsive list links not adapting
properly in Safari that was fixed
This commit is contained in:
ro
2024-02-15 15:00:03 -06:00
parent 03fbd00db1
commit 573054e7d8
6 changed files with 302 additions and 249 deletions

View File

@ -4,6 +4,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Repositories\LocationRepository;
use App\Services\UpdateService;
use App\Services\MaintenanceService;
use App\Models\Location;
class AppServiceProvider extends ServiceProvider
@ -16,6 +18,14 @@ class AppServiceProvider extends ServiceProvider
$this->app->bind(LocationRepository::class, function ($app) {
return new LocationRepository(new Location());
});
$this->app->bind(UpdateService::class, function ($app) {
return new UpdateService(new Location());
});
$this->app->bind(MaintenanceService::class, function ($app) {
return new MaintenanceService(new Location());
});
}
/**