From ca97158a0d8bb0bb3b38e6ac848a665bdb8a8105 Mon Sep 17 00:00:00 2001 From: SimplyCorey Date: Wed, 30 Aug 2017 18:36:58 +0000 Subject: [PATCH] Update for Laravel 5.5 --- .../Mongodb/Eloquent/HybridRelations.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Jenssegers/Mongodb/Eloquent/HybridRelations.php b/src/Jenssegers/Mongodb/Eloquent/HybridRelations.php index bb7c760a3..4f68f71bd 100644 --- a/src/Jenssegers/Mongodb/Eloquent/HybridRelations.php +++ b/src/Jenssegers/Mongodb/Eloquent/HybridRelations.php @@ -207,14 +207,18 @@ public function morphTo($name = null, $type = null, $id = null) /** * Define a many-to-many relationship. * - * @param string $related - * @param string $collection - * @param string $foreignKey - * @param string $otherKey - * @param string $relation + * @param string $related + * @param string $table + * @param string $foreignPivotKey + * @param string $relatedPivotKey + * @param string $parentKey + * @param string $relatedKey + * @param string $relation * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ - public function belongsToMany($related, $collection = null, $foreignKey = null, $otherKey = null, $relation = null) + public function belongsToMany($related, $table = null, $foreignPivotKey = null, + $relatedPivotKey = null, $parentKey = null, + $relatedKey = null, $relation = null) { // If no relationship name was passed, we will pull backtraces to get the // name of the calling function. We will use that function name as the