title: Job chaining in Lumen 5.5: withChain() not working how can I make it work?
body: <p>For dispatching a single job I usually do one of these:</p>
  
  <pre><code>Queue::push(new ExampleJob);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>dispatch(new ExampleJob);
  </code></pre>
  
  <p><a href="https://lumen.laravel.com/docs/5.5/queues" rel="nofollow noreferrer">https://lumen.laravel.com/docs/5.5/queues</a></p>
  
  <p>According to the Laravel Docs a certain Job chain, where one Job depends upon the previous is done like this:</p>
  
  <pre><code>ExampleJob::withChain([
      new OptimizePodcast,
      new ReleasePodcast
  ])-&gt;dispatch();
  </code></pre>
  
  <p><a href="https://laravel.com/docs/5.5/queues#job-chaining" rel="nofollow noreferrer">https://laravel.com/docs/5.5/queues#job-chaining</a></p>
  
  <p>However this does not workin in Lumen (similar problem here: <a href="https://stackoverflow.com/questions/46648288/how-to-dispatch-a-job-to-a-specific-queue-in-lumen-5-5">How to dispatch a Job to a specific queue in Lumen 5.5</a>).</p>
  
  <p>How do I chain Jobs in Lumen 5.5?</p>