*/ use HasFactory, SoftDeletes; protected $fillable = [ 'portal', 'language', 'title', 'content', 'is_global', 'is_active', 'priority', 'legacy_portal', 'legacy_id', ]; protected function casts(): array { return [ 'portal' => Portal::class, 'is_global' => 'boolean', 'is_active' => 'boolean', 'priority' => 'integer', ]; } public function categories(): BelongsToMany { return $this->belongsToMany(Category::class, 'category_footer_code'); } }