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