Started a new project with Laravel 5.5 and I am running into this issue.
ErrorException thrown with message "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)"
Now that 5.5 is officially official, I'm sure the package will be updated to handle any breaks.
@devcircus yes laravel 5.5 is officially released.
https://laravel-news.com/laravel-5-5
fix this issue ASAP.
I'm sure a PR would be much appreciated.
@jenssegers : when should we expect MongoDB package update for Laravel 5.5
+1
@elanvans Asking for an issue to be fixed ASAP on a free and open source project while not providing any work by yourself is kinda a dick move.
Laravel's 5.5 release is just a few days old, give some time to this project to be updated and tested.
@elanvans
Which PR was it you opened? I'm trying to find it.
I have the same issue...
I have the same issue...
https://stackoverflow.com/questions/45983708/laravel-5-5-mongo-db-error
Thank you it is fixed now.
PR in progress : https://github.com/jenssegers/laravel-mongodb/pull/1295
BelongsToMany & Embedded relationships are not working anymore (see failing tests). Anyone wanting to join in to help find the fix is welcome ;)
I released an alpha tag.
@jenssegers
I get error, when i update laravel-mongodb package
[ErrorException]
Declaration of Jenssegers\Mongodb\Eloquent\HybridRelations::belongsToMany($related, $collection = NULL, $foreign
Key = NULL, $otherKey = NULL, $relation = NULL) should be compatible with Illuminate\Database\Eloquent\Model::be
longsToMany($related, $table = NULL, $foreignPivotKey = NULL, $relatedPivotKey = NULL, $parentKey = NULL, $relat
edKey = NULL, $relation = NULL)
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json to its original content.
same here... :(
Are there any real updates on this? I'll be happy to try and submit my own PR, but I recall seeing one already worked on. It's been over 2 months now.
This release works for me : https://github.com/jenssegers/laravel-mongodb/releases/tag/v3.3.0-alpha
Yes, the alpha seems to be working..
Most helpful comment
@elanvans Asking for an issue to be fixed ASAP on a free and open source project while not providing any work by yourself is kinda a dick move.
Laravel's 5.5 release is just a few days old, give some time to this project to be updated and tested.