From dfdcfc5240b5136bd64dd58020e0c10ae8e8edea Mon Sep 17 00:00:00 2001 From: Ditty Date: Tue, 3 Mar 2020 18:53:57 +0300 Subject: [PATCH 1/2] 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 c57857638..36de393dc 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(); } From 27acb90f8492a334d58d0e24fb0bd54f005941b1 Mon Sep 17 00:00:00 2001 From: Ditty Date: Tue, 3 Mar 2020 19:02:00 +0300 Subject: [PATCH 2/2] Change laravel version to 6.x Laravel versions starting from 6 are all 6.x --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index deebfed19..91bfa8c6f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Make sure you have the MongoDB PHP driver installed. You can find installation i 5.6.x | 3.4.x 5.7.x | 3.4.x 5.8.x | 3.5.x - 6.0.x | 3.6.x + 6.x | 3.6.x Install the package via Composer: