app/Providers/RepositoryServiceProvider.php
<?php
namespace App\Providers;
use App\Repositories\DeviceRepository;
use App\Repositories\IDeviceRepository;
use App\Repositories\IRFDeviceRepository;
use App\Repositories\IUserRepository;
use App\Repositories\RFDeviceRepository;
use App\Repositories\UserRepository;
use Illuminate\Support\ServiceProvider;
class RepositoryServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->bind(IDeviceRepository::class, DeviceRepository::class);
$this->app->bind(IRFDeviceRepository::class, RFDeviceRepository::class);
$this->app->bind(IUserRepository::class, UserRepository::class);
}
}