When I'm, trying to run php artisan queue:work command, I'm getting this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to a member function beginTransaction() on null
I have checked almost all the available help for this error on the internet, but I didn't get any solution.
I'm not sure if this has something to do with this package which I'm using.
https://github.com/jenssegers/laravel-mongodb
I'm guessing it might be as someone else also got this error, but unfortunately there are no any replies.
https://github.com/jenssegers/laravel-mongodb/issues/964
Detail error from the log:
[2016-11-12 20:18:45] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function beginTransaction() on null' in C:\wamp\www\blog\vendor\laravel\framework\src\Illuminate\Database\Connection.php:611
Stack trace:
#0 {main}
Any help would be appreciated.
Thanks in advance.
Thanks,
Parth vora
I have found the issue.
I had not followed the queue configuration of the package.
https://github.com/jenssegers/laravel-mongodb#queues
Just follow the proper instruction and it works very well.