title: How to use Event::queue in laravel?
body: <p>I've read a lot about <code>Event::queue</code> but I just cant get my head around it, so i have something like:</p>
  
  <pre><code>Event::listen('send_notification');
  </code></pre>
  
  <p>and in the controller I use</p>
  
  <pre><code>Event::fire('send_notification');
  </code></pre>
  
  <p>But because this takes sometime before sending the user to somewhere else, I instead want to use </p>
  
  <pre><code>Event::queue('send_notification');
  </code></pre>
  
  <p>To fire the event <em>after</em> the user has been redirected, but I don't know how.</p>
  
  <p>(In the <code>app/config/app.php</code> i have the <code>queue driver</code> set to <code>sync</code>)</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>a small note about firing the event ,u can do all ur work just like normal ,and add all the <code>Event::flush()</code> as a filter ,then just call that filter through <code>-&gt;after()</code> or <code>afterFilter()</code>.</p>