mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: add champion role database
This commit is contained in:
26
app/Models/ChampionRoles.php
Normal file
26
app/Models/ChampionRoles.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user