mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
Convert $casts property to method
This commit is contained in:
@@ -22,9 +22,12 @@ class SummonerIcon extends Model
|
||||
'esports_event',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'legacy' => 'boolean',
|
||||
];
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'legacy' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user