'array', ]; public function getTitleAttribute() { return $this->{'title_' . app()->getLocale()} ?? $this->title_en; } public function getSubtitleAttribute() { return $this->{'subtitle_' . app()->getLocale()} ?? $this->subtitle_en; } public function getDescriptionAttribute() { return $this->{'description_' . app()->getLocale()} ?? $this->description_en; } public function skillName($skill) { return $skill['name_' . app()->getLocale()] ?? $skill['name_en']; } // Auto-clear cache on save/delete protected static function booted() { static::saved(fn () => Cache::forget('about_us_section')); static::deleted(fn () => Cache::forget('about_us_section')); } }