Convert $casts property to method

This commit is contained in:
Shift
2024-03-18 16:13:34 +00:00
parent 0cb5d2ac31
commit 1038874e0f
7 changed files with 47 additions and 26 deletions

View File

@@ -20,9 +20,12 @@ class SkinChroma extends Model
'chroma_image',
];
protected $casts = [
'chroma_colors' => 'array',
];
protected function casts(): array
{
return [
'chroma_colors' => 'array',
];
}
public function sluggable(): array
{