I have installed laravel 5.2.0 and https://github.com/jenssegers/laravel-mongodb , and want to send emails via queue. I've created jobs table successfully but when running php artisan queue:work command it is throwing following error -
PHP Fatal error: Call to a member function beginTransaction() on null in /var/www/html/admin/setupl/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 576
I've checked database connection , here is my complete logs in command line -
I've spent many hours to resolve it but still not working.Any help would be really appreciated , thanks much.
Edit - As suggested "MongoDB do not have transactions, so when Laravel tries to begin one an exception is throwed" here https://github.com/jenssegers/laravel-mongodb/pull/871 , I have commented codes in beginTransaction and commit() and return null, now error has gone but still command not working.
public function commit()
{
return null;
}
And
public function beginTransaction()
{
return null;
}