41 lines
795 B
PHP
41 lines
795 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\Product\Http\Controllers\Admin;
|
||
|
|
||
|
use Modules\Product\Entities\Product;
|
||
|
use Modules\Admin\Traits\HasCrudActions;
|
||
|
use Modules\Product\Http\Requests\SaveProductRequest;
|
||
|
|
||
|
class ProductController
|
||
|
{
|
||
|
use HasCrudActions;
|
||
|
|
||
|
/**
|
||
|
* Model for the resource.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $model = Product::class;
|
||
|
|
||
|
/**
|
||
|
* Label of the resource.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $label = 'product::products.product';
|
||
|
|
||
|
/**
|
||
|
* View path of the resource.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $viewPath = 'product::admin.products';
|
||
|
|
||
|
/**
|
||
|
* Form requests for the resource.
|
||
|
*
|
||
|
* @var array|string
|
||
|
*/
|
||
|
protected $validation = SaveProductRequest::class;
|
||
|
}
|