title: Laravel 5.5 Mongo DB error
body: <p>I am developing a Mongo DB app in Laravel 5.5. But getting following error in the package <a href="https://github.com/jenssegers/laravel-mongodb" rel="nofollow noreferrer">https://github.com/jenssegers/laravel-mongodb</a>. </p>
  
  <blockquote>
    <p>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)</p>
  </blockquote>
  
  <p>Following are the steps I did.</p>
  
  <ol>
  <li>Installed Mongo db and its php extension.</li>
  <li>Installed this Laravel package.</li>
  <li>Added the service provider</li>
  <li>Configured DB</li>
  <li>Created the model</li>
  <li>And finally<br>
  <code>$user = DB::connection('mongodb')-&gt;collection('users')-&gt;get();</code></li>
  </ol>