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:
@@ -29,9 +29,12 @@ class Champion extends Model
|
||||
'release_patch',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'roles' => 'array',
|
||||
];
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'roles' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function getResourceTypeAttribute($value): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user