mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
🧹 Duster
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,13 +16,6 @@ class ChampionRoles extends Model
|
||||
'roles',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'roles' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function champion(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Champion::class, 'champion_id', 'champion_id');
|
||||
@@ -50,4 +43,11 @@ class ChampionRoles extends Model
|
||||
|
||||
return $transformedRoles;
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'roles' => 'array',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ class ChampionSkin extends Model
|
||||
'splash_artist',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'associated_skinline' => 'array',
|
||||
'voice_actor' => 'array',
|
||||
'splash_artist' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
return [
|
||||
@@ -86,4 +77,13 @@ class ChampionSkin extends Model
|
||||
{
|
||||
return 'https://cdn.communitydragon.org/latest/champion/'.$this->champion_id.'/tile/skin/'.$this->skin_id;
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'associated_skinline' => 'array',
|
||||
'voice_actor' => 'array',
|
||||
'splash_artist' => 'array',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,13 +20,6 @@ class SkinChroma extends Model
|
||||
'chroma_image',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'chroma_colors' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
return [
|
||||
@@ -45,4 +38,11 @@ class SkinChroma extends Model
|
||||
{
|
||||
return 'https://raw.communitydragon.org/pbe/plugins/rcp-be-lol-game-data/global/default/v1/champion-chroma-images/'.$this->skin->champion_id.'/'.$this->chroma_id.'.png';
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'chroma_colors' => 'array',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,13 +22,6 @@ class SummonerIcon extends Model
|
||||
'esports_event',
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'legacy' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
return [
|
||||
@@ -49,4 +42,11 @@ class SummonerIcon extends Model
|
||||
{
|
||||
return 'slug';
|
||||
}
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'legacy' => 'boolean',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user