feat: add champion role database

This commit is contained in:
Rico van Zelst
2023-11-01 14:55:17 +01:00
parent 5849764f21
commit 509fbed10b
8 changed files with 286 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ChampionRoles extends Model
{
use HasFactory;
protected $fillable = [
'champion_id',
'champion_name',
'roles',
];
protected $casts = [
'roles' => 'array',
];
public function champion()
{
return $this->belongsTo(Champion::class);
}
}