title: Unable to Print Raw SQL
body: <p>I've tried various options. I just want to get the raw sql for this;</p>
  
  <pre><code>$payments = Payment::select('Vendor ZIP')-&gt;whereIn('Vendor ZIP', $postcodes)-&gt;get()-&gt;toArray();
  </code></pre>
  
  <p>I've tried;</p>
  
  <pre><code>//this
  dd(array($payments)); 
  
  //this one
  Event::listen('illuminate.query', function($payments)  
      { 
          dd(array($payments));
      });
  
  //this one too
  $sql = str_replace(['%', '?'], ['%%', "'%s'"], $payments-&gt;toSql());
  $fullSql = vsprintf($sql, $payments-&gt;getBindings());
  print_r($fullSql);
  </code></pre>
  
  <p>I mostly get a <code>No data received</code> error message on the browser. What else can I try?</p>
  
  <p>The query is 100% correct by the way.</p>