mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: champion roles data seeder
This commit is contained in:
@@ -21,6 +21,8 @@ class ChampionRoles extends Model
|
||||
|
||||
public function getRolesAttribute($value)
|
||||
{
|
||||
$value = is_array($value) ? $value : [$value];
|
||||
|
||||
$mappedRoles = [];
|
||||
foreach ($value as $role) {
|
||||
switch ($role) {
|
||||
|
||||
Reference in New Issue
Block a user