mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/
MIT License
7.01k stars 1.43k forks source link

Error in Lumen 5.5 #1313

Closed Codestudios closed 4 years ago

Codestudios commented 7 years ago

(1/1) ErrorExceptionDeclaration 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)

in Model.php (line 14)

at Application->Laravel\Lumen\Concerns{closure}(2, '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)', '/home/vagrant/sae-cloud/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Eloquent/Model.php', 14, array('file' => '/home/vagrant/sae-cloud/vendor/composer/../jenssegers/mongodb/src/Jenssegers/Mongodb/Eloquent/Model.php')) in Model.php (line 14)

MCMatters commented 7 years ago

Use v3.3.0-alpha version