title: Laravel eloquent relationships 3rd level
body: <p>tables :</p>
  
  <pre><code>divisions
      id      name
  
  districts
      id      division_id         name
  
  subdistricts
      id      district_id         name
  
  
  class Division extends Model
  {
      //
      public function districts()
      {
          return $this-&gt;hasMany('App\District', 'division_id');
      }
  
      public function subdistricts()
      {
          // what will be here
      }
  
  }
  </code></pre>
  
  <p>is it possible to get subdistricts by division_id without using division_id on subdistricts table</p>