title: With query Issue in Eloquent
body: <p>I have following query which works fine and gives result for StatusType</p>
  
  <pre><code>AddOnModel::with('StatusType')-&gt;get();
  </code></pre>
  
  <p>But when I write below, it does not bind StatusType Records</p>
  
  <pre><code>AddOnModel
  ::select(\DB::Raw('A.AddOnID, A.AddOn, Count(R.AddOnID) as Total'))
  -&gt;from( 'tblAddOn as A' )
  -&gt;with('StatusType')
  -&gt;leftjoin( 'tblrevenue as R', \DB::raw( 'R.AddOnID' ), '=', \DB::raw( 'A.AddOnID' ) )
  -&gt;groupBy("A.AddOnID", "A.AddOn")-&gt;get();
  </code></pre>
  
  <p>The part which does not work is this one: <code>-&gt;with('StatusType')</code></p>
  
  <p>Am I doing something incorrectly?</p>
  
  <p>Here is the Model</p>
  
  <pre><code>class AddOnModel extends Model {
  
      public $table = 'tbladdon';
      public $primaryKey = 'AddOnID';
      public $timestamps = true;
  
      public function StatusType() {
          return $this-&gt;hasOne('\StatusTypeModel', 'StatusTypeID', 'StatusTypeID');
      }
  }
  </code></pre>