title: Using Laravel's toSql on queries using 'with' clause
body: <p>I'm working in Laravel and I'm interested in checking the SQL statements generated by a Eloquent query that includes a with() statement.  For some reason I'm getting only the main query.  For example, when I run</p>
  
  <pre><code>class Child extends EloquentVersioned {
      public function childRequests()
      {
          return $this-&gt;hasMany('ChildRequest');
      }   
  
  }
  $childQuery = Child::orderBy('last_name')-&gt;orderBy('first_name')-&gt;with( 'childRequests');
  return $childQuery-&gt;toSql();
  </code></pre>
  
  <p>I get back:</p>
  
  <pre><code>select `children`.* from `children` order by `last_name` asc, `first_name` asc
  </code></pre>
  
  <p>How do I get back the SQL for the with('childRequests') query?</p>