thebadspace/app/Providers/AppServiceProvider.php

29 lines
557 B
PHP
Raw Permalink Normal View History

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Repositories\LocationRepository;
use App\Models\Location;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
$this->app->bind(LocationRepository::class, function ($app) {
return new LocationRepository(new Location());
});
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}