rename models and associates, isolate botanic with shop
This commit is contained in:
@@ -4,12 +4,17 @@ namespace App\Models\Shop;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
use Rinvex\Categories\Traits\Categorizable,
|
||||
use Rinvex\Categories\Traits\Categorizable;
|
||||
|
||||
class Section extends Model
|
||||
{
|
||||
use Categorizable;
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'shop_sections';
|
||||
|
||||
public function Category()
|
||||
{
|
||||
return $this->hasMany('App\Models\Category');
|
||||
}
|
||||
|
||||
public function Products()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user