26 lines
473 B
PHP
26 lines
473 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class Artwork extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'igdb_id',
|
|
'game_id',
|
|
'url',
|
|
'width',
|
|
'height',
|
|
'image_id',
|
|
];
|
|
|
|
public function game(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Game::class);
|
|
}
|
|
}
|