feat: icon list + search functionality

This commit is contained in:
Rico van Zelst
2023-11-15 13:58:12 +01:00
parent cc2ebc8899
commit cea55e776c
25 changed files with 402 additions and 41 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Models;
use Cviebrock\EloquentSluggable\Sluggable;
use Illuminate\Database\Eloquent\Model;
class SummonerIcon extends Model
{
use Sluggable;
protected $fillable = [
'icon_id',
'title',
'description',
'release_year',
'legacy',
'image',
'esports_team',
'esports_region',
'esports_event',
];
protected $casts = [
'legacy' => 'boolean',
];
public function sluggable(): array
{
return [
'slug' => [
'source' => ['title', 'icon_id'],
],
];
}
}