hasOne(User::class); } /** * Game list relation to game model * * @return \Illuminate\Database\Eloquent\Relations\HasOne */ public function game() { return $this->hasOne(Game::class, 'id', 'game_id'); } }