🧹 Duster

This commit is contained in:
Rico van Zelst
2024-06-18 12:55:10 +02:00
parent f3ded81a62
commit a0b37a4ab4
39 changed files with 191 additions and 232 deletions

View File

@@ -29,13 +29,6 @@ class Champion extends Model
'release_patch',
];
protected function casts(): array
{
return [
'roles' => 'array',
];
}
public function getResourceTypeAttribute($value): string
{
$resourceTypes = [
@@ -139,4 +132,11 @@ class Champion extends Model
{
return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/ability-icon/p';
}
protected function casts(): array
{
return [
'roles' => 'array',
];
}
}