I ran into this issue when I upgraded to laravel 5.5
Declaration of Jenssegers\Mongodb\Eloquent\HybridRelations::belongsToMany($related, $collection = NULL, $foreignKey = NULL, $otherKey = NULL, $relation = NULL) should be compatible with Illuminate\Database\Eloquent\Model::belongsToMany($related, $table = NULL, $foreignPivotKey = NULL, $relatedPivotKey = NULL, $parentKey = NULL, $relatedKey = NULL, $relation = NULL)
Exactly ! I have same problem !
I guess the authors must be redefine "belongsToMany" function with new parameters
Thanks again for your great work!
Broken from Laravel v5.4.31. See this commit.
Fixed on laravel's side. https://github.com/laravel/framework/pull/20407
i getting same issue with laravel 5.5
@SimplyCorey How do we fix it? I read about solved in Laravel Side, but still getting this error with laravel 5.5 installed yesterday and the package added today.
@smendozaisf Check out this gist https://github.com/jenssegers/laravel-mongodb/pull/1282/commits/066e2193bc50d2dce1802c00d46ce3b7d252a1c6
@smendozaisf Laravel ended up reverting the change and making it a backwards breaking change again. My comment is no longer valid.
I ended using Laravel 5.4. I don't like to change vendor folder files. When this package make the update, I'll migrate to Laravel 5.5. I hope it will be soon
Thanks :)
i getting the same issue with laravel 5.5
i getting the same issue with laravel 5.5.14
i getting the same issue with lumen 5.5
i too am getting this error with laravel 5.5!! Is this issue resolved, if not why is it showing as Closed!!
Me too i have the same problem with Laravel 5.5
Me too i have the same problem with Laravel 5.5, how to resolve this errror
why @jenssegers not resolve this issue?
This issue still stands 馃憥
Most helpful comment
i getting same issue with laravel 5.5