title: How to capture job queue details after completion in Laravel 5.1?
body: <p>In Laravel 5.1, I would like to be notified when a job is completed, with details about the job (specifically, the <code>user_id</code>, and <code>customer_id</code>). I'm using the <code>Queue::after</code> method method in the <code>AppServiceProvider</code> as Laravel <a href="http://laravel.com/docs/5.1/queues" rel="noreferrer">suggests</a>.  </p>
  
  <p>If a dump the <code>$data</code> parameter like so:</p>
  
  <pre><code>Queue::after(function ($connection, $job, $data) {
      var_dump($data);
      exit;
  });
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>array(2) { ["job"]=&gt; string(39) "Illuminate\Queue\CallQueuedHandler@call" ["data"]=&gt; array(1) { ["command"]=&gt; string(263) "O:23:"App\Jobs\ExportContacts":4:{s:7:"*data";a:5:{s:7:"user_id";s:1:"2";s:10:"customer_id";s:1:"1";s:6:"filter";N;s:5:"dates";a:2:{i:0;i:1445352975;i:1;i:1448034975;}s:4:"file";s:31:"/tend_10-20-2015-11-20-2015.csv";}s:5:"queue";N;s:5:"delay";N;s:6:"*job";N;}" } }
  </code></pre>
  
  <p>The <code>data</code> array contains both of the <code>user_id</code> and the <code>customer_id</code>that I'm after.  Which is great.  But how do I parse this response to pull that information out.</p>
  
  <p>My only thought is to use regex.  But I thought I'd check to see if there was a better way?</p>