title: How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
body: <p>I'm trying to view the log for a query, but <code>DB::getQueryLog()</code> is just returning an empty array:</p>
  
  <pre><code>$user = User::find(5);
  print_r(DB::getQueryLog());
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <pre><code>Array
  (
  )
  </code></pre>
  
  <p>How can I view the log for this query?</p>