title: Laravel memory exception 'Database/Connection.php:301'
body: <p>I got a strange bug going down here, sometimes select queries dies from a memory exception. The big problem here is that I've never been able to see the error by myself. I know its existence from users and the <code>laravel.log</code> file that contains things like :</p>
  
  <pre><code>[2015-03-05 11:46:07] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Allowed memory size of 134217728 bytes exhausted (tried to allocate 196605 bytes)' in [...]/vendor/laravel/framework/src/Illuminate/Database/Connection.php:301
  Stack trace:
  #0 [internal function]: Illuminate\Exception\Handler-&gt;handleShutdown()
  #1 {main} [] []
  </code></pre>
  
  <p>My questions are :</p>
  
  <ul>
  <li>How to debug the issue (find oud what is the query that blows everything up)</li>
  <li>Or if there's a known workaround for this, what is it ?</li>
  </ul>
  
  <p>I already tried to <code>DB::disableQueryLog();</code> within my <code>start/artisan.php</code></p>