feat: Implement product and product category management with dedicated CRUD operations, services, and repositories.
This commit is contained in:
@@ -4,6 +4,8 @@ namespace App\Providers;
|
||||
|
||||
use App\Repositories\Addon\AddonCachedRepository;
|
||||
use App\Repositories\Addon\AddonRepositoryInterface;
|
||||
use App\Repositories\Admin\ProductCategory\ProductCategoryRepository;
|
||||
use App\Repositories\Admin\ProductCategory\ProductCategoryRepositoryInterface;
|
||||
use App\Repositories\Banned\BannedCachedRepository;
|
||||
use App\Repositories\Banned\BannedRepositoryInterface;
|
||||
use App\Repositories\Customer\CustomerCachedRepository;
|
||||
@@ -88,6 +90,8 @@ use App\Repositories\Module\Vmware\VmwareCachedRepository;
|
||||
use App\Repositories\Module\Vmware\VmwareRepositoryInterface;
|
||||
use App\Repositories\Type\TypeCachedRepository;
|
||||
use App\Repositories\Type\TypeRepositoryInterface;
|
||||
use App\Repositories\Admin\Product\ProductRepository;
|
||||
use App\Repositories\Admin\Product\ProductRepositoryInterface;
|
||||
use App\Repositories\User\UserCachedRepository;
|
||||
use App\Repositories\User\UserRepositoryInterface;
|
||||
use App\Repositories\vCenter\vCenterCachedRepository;
|
||||
@@ -343,6 +347,18 @@ class RepositoryProvider extends ServiceProvider
|
||||
VirtualMachineRepositoryInterface::class,
|
||||
VirtualMachineRepository::class
|
||||
);
|
||||
|
||||
// Product
|
||||
$this->app->bind(
|
||||
ProductRepositoryInterface::class,
|
||||
ProductRepository::class
|
||||
);
|
||||
|
||||
// Product Category
|
||||
$this->app->bind(
|
||||
ProductCategoryRepositoryInterface::class,
|
||||
ProductCategoryRepository::class
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use App\Http\Services\Admin\ProductCategory\ProductCategoryServiceInterface;
|
||||
use App\Http\Services\Admin\ProductCategory\ProductCategoryService;
|
||||
|
||||
class ServiceServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind(
|
||||
ProductCategoryServiceInterface::class,
|
||||
ProductCategoryService::class
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user