title: Laravel queue:listen queue:work not working
body: <p>I am trying to send an email in background to reduce server response time.</p>
  
  <p>I have created jobs table and failed_jobs table with using
  <code>php artisan queue:table</code> and <code>php artisan queue:failed-table</code>
  commands. and also set <code>QUEUE_DRIVER=database</code> in .env file.</p>
  
  <p>When I execute following code it creates a job in jobs table.</p>
  
  <pre><code>\Mail::later(5, 'email.new-friend-request', ['data'=&gt;$friend_request], function($message) use (&amp;$friend_request){
                      $message-&gt;to($friend_request-&gt;notifiable-&gt;email, $friend_request-&gt;notifiable-&gt;name)-&gt;from('info@example.com','ABC')-&gt;subject('New Friend Request');
                  });
  </code></pre>
  
  <p>But when I execute <code>php artisan queue:listen</code> or <code>php artisan queue:work</code> command. It neither processes the jobs saved in jobs table nor it gives any output on console.</p>
  
  <p>However when I check jobs table, the attempts field of job keep incrementing. But job is not getting processed.</p>
  
  <p>Also when I send mail directly using following code ie without adding it to queue. The mail got sent without any problem.</p>
  
  <pre><code>\Mail::send('email.new-friend-request', ['data'=&gt;$friend_request], function($message) use (&amp;$friend_request){
                          $message-&gt;to($friend_request-&gt;notifiable-&gt;email, $friend_request-&gt;notifiable-&gt;name)-&gt;from('info@example.com','ABC')-&gt;subject('New Friend Request');
                      });
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>I tried sending email without any data and it also works without any issue.
  ie </p>
  
  <pre><code>\Mail::later(5, 'email.new-friend-request', [], function($message) use (&amp;$friend_request){
                          $message-&gt;to($friend_request-&gt;notifiable-&gt;email, $friend_request-&gt;notifiable-&gt;name)-&gt;from('info@example.com','ABC')-&gt;subject('New Friend Request');
                      });
  </code></pre>