disambiguate columns
This commit is contained in:
parent
e28d49dc71
commit
e9bc892317
|
@ -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() {
|
||||
|
|
Reference in New Issue