title: Laravel eloquent relationships Multiple table
body: <p>When I try to connect my table using a query. But I need the building relationship using Laravel eloquent.</p>
  <p>This is my query</p>
  <pre><code>{
    
  $students = Student::with('FeeScheem')
  -&gt;leftJoin('fee_scheems', 'fee_scheems.fs_id', '=', 'students.stu_fee_scheem_id')
  -&gt;leftJoin('individually_fee_scheems', 'individually_fee_scheems.id', '=', 'students.stu_ind_fee_scheem_id')
  -&gt;leftJoin('fee_masters', 'fee_masters.fee_master_ind_fee_scheem_id', '=', 'individually_fee_scheems.id')
  -&gt;leftJoin('fee_groups', 'fee_groups.fg_id', '=', 'fee_masters.fee_master_fg_id')
  -&gt;leftJoin('school_fee_collectors', 'school_fee_collectors.fc_fg_id', '=', 'fee_groups.fg_id')
  -&gt;where('students.stu_id', $students)
  -&gt;get();
  $this-&gt;students = $students;
  </code></pre>
  <p>}</p>