Fix array to string conversion
With ‘BelongsToMany’ relationships calling the function `Jenssegers\Mongodb\Eloquent\Model::has` can throw an ErrorException with ‘Array to string conversion’. By flattening the collection here we can avoid triggering the exception.
Showing
Please
register
or
sign in
to comment