repo_pattern/app/Providers/RepositoryServiceProvider.php
2024-02-13 13:11:11 +05:45

28 lines
486 B
PHP

<?php
namespace App\Providers;
use App\Interfaces\OrderRepositoryInterface;
use App\Repositories\OrderRepository;
use Illuminate\Support\ServiceProvider;
class RepositoryServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register()
{
$this->app->bind(OrderRepositoryInterface::class, OrderRepository::class);
}
/**
* Bootstrap services.
*/
public function boot(): void
{
//
}
}