lots of improvements
This commit is contained in:
@@ -16,7 +16,7 @@ class Review extends Model
|
||||
'content',
|
||||
'recommended',
|
||||
'rating',
|
||||
'platform',
|
||||
'platform_id',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@@ -33,4 +33,9 @@ class Review extends Model
|
||||
{
|
||||
return $this->belongsTo(Game::class);
|
||||
}
|
||||
|
||||
public function platform(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Platform::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user