title: Error : Method Illuminate\Database\Eloquent\Collection::StudentInfo does not exist. (Laravel 5.6)
body: <p>I am new to make join tables with Eloquent. I want to join 3 tables. But it shows me error. What's my mistake, if anyone notice it will be helpful for me. Here is tables.... 
  In 1st table <strong>Applications(id,u_id,program_name)</strong> 2nd table <strong>StudentInfos(id,u_id,.....)</strong> 3rd table <strong>users(id,.....)</strong></p>
  
  <p><strong>in Application model</strong></p>
  
  <pre><code>public function StudentInfo()
  {
      return $this-&gt;hasOne('App\StudentInfo', 'u_id', 'u_id');
  
  }
  </code></pre>
  
  <p><strong>in StudentInfo model</strong></p>
  
  <pre><code>public function User()
  {
      return $this-&gt;hasOne('App\user', 'u_id', 'id');
  
  }
  </code></pre>
  
  <p><strong>From controller</strong></p>
  
  <pre><code> public function view_application($id)
    {
      $vu_data = Application::where('id', $id)-&gt;get();
      $vu_data2 = $vu_data-&gt;StudentInfo()-&gt;get();
      return $vu_data2;
  
    }
  </code></pre>