From e9beff3fc342cb020e7669931c4afe06d9f83f76 Mon Sep 17 00:00:00 2001 From: dev-arrow Date: Mon, 16 Mar 2020 12:15:55 +0200 Subject: [PATCH] Make newPivotQuery function public PR https://github.com/laravel/framework/pull/31677 made newPivotQuery function public and that's the reason why builds are failing. --- src/Jenssegers/Mongodb/Relations/BelongsToMany.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jenssegers/Mongodb/Relations/BelongsToMany.php b/src/Jenssegers/Mongodb/Relations/BelongsToMany.php index c578576..36de393 100644 --- a/src/Jenssegers/Mongodb/Relations/BelongsToMany.php +++ b/src/Jenssegers/Mongodb/Relations/BelongsToMany.php @@ -265,7 +265,7 @@ protected function buildDictionary(Collection $results) /** * @inheritdoc */ - protected function newPivotQuery() + public function newPivotQuery() { return $this->newRelatedQuery(); }