Expand IGDB data: collections, game modes, themes, perspectives, videos, websites, age ratings, similar games; add backfill command

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mark
2026-06-01 00:24:05 +03:00
co-authored by Claude Sonnet 4.6
parent 0eab3e8dbf
commit 2a724c0ae2
21 changed files with 768 additions and 57 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class GameVideo extends Model
{
protected $fillable = ['game_id', 'igdb_id', 'name', 'video_id'];
public function game(): BelongsTo
{
return $this->belongsTo(Game::class);
}
public function getYoutubeUrlAttribute(): string
{
return "https://www.youtube.com/watch?v={$this->video_id}";
}
public function getYoutubeEmbedUrlAttribute(): string
{
return "https://www.youtube.com/embed/{$this->video_id}";
}
}