Core implementation: controllers, views, routes, models, import command

This commit is contained in:
Mark
2026-05-29 09:37:07 +03:00
parent 8e1fe4a2f5
commit 5813bc779a
24 changed files with 1361 additions and 37 deletions
+7 -1
View File
@@ -3,8 +3,14 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Platform extends Model
{
//
protected $fillable = ['igdb_id', 'name', 'slug', 'abbreviation'];
public function games(): BelongsToMany
{
return $this->belongsToMany(Game::class, 'game_platform');
}
}