From e9bc8923179d8e611237e81f9629e8383e3d814e Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev Date: Fri, 18 Dec 2020 08:21:18 +0700 Subject: [PATCH] disambiguate columns --- app/Models/Game.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Game.php b/app/Models/Game.php index fccff6a..67a48d2 100644 --- a/app/Models/Game.php +++ b/app/Models/Game.php @@ -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() {