Files

15 lines
416 B
PHP
Raw Permalink Normal View History

2026-05-29 00:33:00 +03:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
2026-05-29 00:33:00 +03:00
class UserListGame extends Model
{
protected $fillable = ['user_list_id', 'game_id', 'order', 'notes'];
public function list(): BelongsTo { return $this->belongsTo(UserList::class, 'user_list_id'); }
public function game(): BelongsTo { return $this->belongsTo(Game::class); }
2026-05-29 00:33:00 +03:00
}