title: Laravel 4 view sql query
body: <p>When working on Laravel, we do query like this:</p>
  
  <pre><code>$user = DB::table('users')-&gt;where('name', 'John')-&gt;first();
  </code></pre>
  
  <p>How can I view the generated sql query? This is something very important for debugging during the development.</p>
  
  <p>Thank you.</p>