From 91e2f868ff81c20f09327ba0b086b3c4e3942f7e Mon Sep 17 00:00:00 2001 From: CDouglas1029 Date: Tue, 3 Mar 2020 18:53:57 +0300 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(); }