mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-14 18:02:01 -04:00
19 lines
415 B
PHP
19 lines
415 B
PHP
<?php
|
|
|
|
namespace Modules\FrontendCMS\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Product\Entities\Category;
|
|
|
|
class HomePageCustomSection extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function category(){
|
|
return $this->belongsTo(Category::class,'field_1', 'id')->with('subCategories');
|
|
}
|
|
}
|