30 lines
563 B
PHP
30 lines
563 B
PHP
<?php
|
|
|
|
namespace Modules\CCMS\Models;
|
|
|
|
use App\Traits\CreatedUpdatedBy;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class GalleryCategory extends Model
|
|
{
|
|
use HasFactory, CreatedUpdatedBy;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'title',
|
|
'slug',
|
|
'status',
|
|
'order',
|
|
'createdby',
|
|
'updatedby',
|
|
];
|
|
|
|
public function galleries()
|
|
{
|
|
return $this->hasMany(Gallery::class, 'category_id');
|
|
}
|
|
}
|