title: Unable to catch exceptions in Laravel 5.1
body: <p>Unable to <em>catch exception</em> in <a href="/questions/tagged/laravel" class="post-tag" title="show questions tagged &#39;laravel&#39;" rel="tag">laravel</a> <em>v5.1</em>.</p>
  
  <pre><code>$companyID = $userprofile-&gt;company_id;                      
  try {                       
      $companies = Company::find($companyID)-&gt;first()-&gt;name;                   
  } catch(\Illuminate\Database\QueryException $ex){
      dd($ex-&gt;getMessage());
  }
  </code></pre>