*/ protected $fillable = [ 'name', 'slug', 'title', 'banner', 'favicon', 'description', 'meta_description', 'meta_keywords', 'active', ]; protected $casts = [ 'active' => 'boolean', ]; /** * Get all sections for this page */ public function sections(): HasMany { return $this->hasMany(PageSection::class, 'page_id'); } }