Laravel-mongodb: Laravel 5.5

Created on 30 Aug 2017  路  17Comments  路  Source: jenssegers/laravel-mongodb

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)"

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.

All 17 comments

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...

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.

Yes, the alpha seems to be working..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kschethan picture kschethan  路  3Comments

Idnan picture Idnan  路  3Comments

HassanIbrahim picture HassanIbrahim  路  3Comments

bastiendonjon picture bastiendonjon  路  3Comments

lgt picture lgt  路  3Comments