title: Laravel 5.0 Model not found exception
body: <pre><code>try {
    $university_exists = University::where('name', '=', $university_name) - &gt; firstOrFail();
  } catch (ModelNotFoundException $e) {
    $title = "Error retrieving data";
    $message = "Entered university not found!";
    $success = 0;
    return Response::json(['title' =&gt; $title, 'message' =&gt; $message, 'success' =&gt; $success], 200);
  }
  </code></pre>
  
  <p>The above code works when I give correct university name.
  When I give wrong university name it throws a <code>model not found</code> exception. </p>
  
  <p>Which I try to catch in the catch block. However, it doesn't get caught.</p>
  
  <p>Can someone help me please?</p>
  
  <blockquote>
    <p>ModelNotFoundException in Builder.php line 151:
    No query results for model [App\University].</p>
  </blockquote>