Archived
1
0
Fork 0

disambiguate columns

This commit is contained in:
Alexander Yakovlev 2020-12-18 08:21:18 +07:00
parent e28d49dc71
commit e9bc892317
Signed by: oreolek
GPG key ID: 1CDC4B7820C93BD3

View file

@ -39,7 +39,7 @@ class Game extends Model
}
public function authors() {
return $this->belongsToMany(Author::class, 'authors_games');
return $this->belongsToMany(Author::class, 'authors_games', 'game_id', 'author_id');
}
public function languages() {