|
|
|
@ -10,6 +10,43 @@ class Game extends Model
|
|
|
|
|
{
|
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
|
'age_ratings' => 'array',
|
|
|
|
|
'alternative_names' => 'array',
|
|
|
|
|
'artworks' => 'array',
|
|
|
|
|
'bundles' => 'array',
|
|
|
|
|
'collection' => 'array',
|
|
|
|
|
'cover' => 'array',
|
|
|
|
|
'dlcs' => 'array',
|
|
|
|
|
'expansions' => 'array',
|
|
|
|
|
'expanded_games' => 'array',
|
|
|
|
|
'external_games' => 'array',
|
|
|
|
|
'forks' => 'array',
|
|
|
|
|
'franchise' => 'array',
|
|
|
|
|
'franchises' => 'array',
|
|
|
|
|
'game_engines' => 'array',
|
|
|
|
|
'game_localizations' => 'array',
|
|
|
|
|
'game_modes' => 'array',
|
|
|
|
|
'genres' => 'array',
|
|
|
|
|
'involved_companies' => 'array',
|
|
|
|
|
'keywords' => 'array',
|
|
|
|
|
'language_supports' => 'array',
|
|
|
|
|
'multiplayer_modes' => 'array',
|
|
|
|
|
'platforms' => 'array',
|
|
|
|
|
'player_perspectives' => 'array',
|
|
|
|
|
'ports' => 'array',
|
|
|
|
|
'release_dates' => 'array',
|
|
|
|
|
'remakes' => 'array',
|
|
|
|
|
'remasters' => 'array',
|
|
|
|
|
'screenshots' => 'array',
|
|
|
|
|
'similar_games' => 'array',
|
|
|
|
|
'standalone_expansions' => 'array',
|
|
|
|
|
'tags' => 'array',
|
|
|
|
|
'themes' => 'array',
|
|
|
|
|
'videos' => 'array',
|
|
|
|
|
'websites' => 'array'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function fillGameDetails ($slug){
|
|
|
|
|
|
|
|
|
|
#$game_data = IGDBController::getGameDetails($slug);
|
|
|
|
|