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:
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user