You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running php artisan queue:failed this error is thrown:
[ErrorException]
array_map(): Argument #2 should be an array
The problem lies on MongoFailedJobProvider::all().
If I change line 31 from this: $all = $this->getTable()->orderBy('_id', 'desc')->get();
to this: $all = $this->getTable()->orderBy('_id', 'desc')->get()->all();
Then it works ok (using Laravel 5.3).
The text was updated successfully, but these errors were encountered:
juanf
added a commit
to juanf/laravel-mongodb
that referenced
this issue
Nov 4, 2016
When running
php artisan queue:failed
this error is thrown:The problem lies on MongoFailedJobProvider::all().
If I change line 31 from this:
$all = $this->getTable()->orderBy('_id', 'desc')->get();
to this:
$all = $this->getTable()->orderBy('_id', 'desc')->get()->all();
Then it works ok (using Laravel 5.3).
The text was updated successfully, but these errors were encountered: