| 1 | <?php |
||
| 14 | class SubCategory extends Repository implements Translatable |
||
| 15 | { |
||
| 16 | use ActivateableTrait, HasTranslations, HasImages, HasFilters, Presenterable; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $table = 'sub_categories'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var SubCategoryPresenter |
||
| 25 | */ |
||
| 26 | public $presenter = SubCategoryPresenter::class; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $fillable = ['category_id', 'active']; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var SubCategoryTranslations |
||
| 35 | */ |
||
| 36 | public $translationModel = SubCategoryTranslations::class; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | public $translatedAttributes = ['name', 'slug', 'seo_title', 'seo_description', 'seo_keywords']; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 45 | */ |
||
| 46 | public function category() |
||
| 50 | } |
||
| 51 |