title: Display specific column name in laravel 5.6
body: <p>I am using laravel 5.6. I've two tables. One is <strong>Teachers(id,name,email,salary)</strong> another is <strong>Students(id,teacher_id,name,email)</strong> I have joined 2 tables</p>
  
  <pre><code>$vu_data = Teacher::join('Students', 'teachers.id', '=', 'students.teacher_id')
                             -&gt;where('teachers.id', $id)
                             -&gt;get();
  return view('view_full')-&gt;with('vu_data',$vu_data);
  </code></pre>
  
  <p><strong>view_full.blade.php</strong></p>
  
  <pre><code>{{$vu_data[0]-&gt;name}}
  </code></pre>
  
  <p>How can I display sthdent name and teacher nam. There are same column name.</p>
  
  <p>Thanks in advance</p>