mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
Convert $casts property to method
This commit is contained in:
@@ -34,11 +34,14 @@ class ChampionSkin extends Model
|
||||
'splash_artist',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'associated_skinline' => 'array',
|
||||
'voice_actor' => 'array',
|
||||
'splash_artist' => 'array',
|
||||
];
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'associated_skinline' => 'array',
|
||||
'voice_actor' => 'array',
|
||||
'splash_artist' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user