Initial commit

This commit is contained in:
2026-05-20 18:25:15 +02:00
commit 95f0b4ff01
288 changed files with 90909 additions and 0 deletions

24
app/Models/Game.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Game extends Model
{
/**
* @var string[]
*/
protected $fillable = ['name', 'slug', 'platform_id', 'genre_id' ];
public function platform(): BelongsTo
{
return $this->belongsTo(Platform::class);
}
public function genre(): BelongsTo
{
return $this->belongsTo(Genre::class);
}
}