title: laravel eloquent left join not outputting
body: <p>I'm trying to achieve this </p>
  
  <pre><code>SELECT *
  FROM pending
  LEFT JOIN users ON pending.user_id = users.id
  WHERE pending.school_id = '1'
  </code></pre>
  
  <p>Which produces two results of the two tables combined with the users details output.</p>
  
  <p>Pending Model</p>
  
  <pre><code>public function users(){
      return $this-&gt;belongsTo('User');
  }
  public function school(){
      return $this-&gt;belongsTo('School');
  }
  </code></pre>
  
  <p>User model</p>
  
  <pre><code>public function pending(){
      return $this-&gt;hasMany('Pending','user_id');
  }
  </code></pre>
  
  <p>School Model </p>
  
  <pre><code>public function pending(){
      return $this-&gt;hasMany('Pending','school_id');
  }
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>$pending_user = Pending::with('users')-&gt;where('school_id', '=', '1')-&gt;get();
  </code></pre>
  
  <p>This retrieves an array of the two records but a null result in the user array. </p>
  
  <pre><code>"users":null
  </code></pre>
  
  <p>Any help appreciated.</p>