24 lines
427 B
PHP
24 lines
427 B
PHP
<?php
|
|
|
|
namespace App\Models\Shop;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Rinvex\Categories\Traits\Categorizable;
|
|
|
|
class Section extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
protected $table = 'shop_sections';
|
|
|
|
public function Category()
|
|
{
|
|
return $this->hasMany('App\Models\Category');
|
|
}
|
|
|
|
public function Products()
|
|
{
|
|
return $this->hasMany('App\Models\Shop\Product');
|
|
}
|
|
|
|
} |