title: Get values from belongsTo() Laravel 5
body: <p>i'm having a bit of a problem with Laravel 5 and Eloquent. I have 3 models userInfo, tasksAssign, and taskCreated. 
  The User model:</p>
  
  <pre><code>public function tasksAssign()
  {
      return $this-&gt;hasMany('App\Tasks', 'fk_user_id_assign', 'id')-&gt;where('status',  2);
  }
  public function tasksCreated()
  {
      return $this-&gt;hasMany('App\Tasks', 'fk_user_id_created', 'id');
  }
  </code></pre>
  
  <p>The tasks model</p>
  
  <pre><code>public function userInfo()
  {
      return $this-&gt;belongsTo('App\User');
      //return $this-&gt;hasOne('App\User', 'id', 'id'); The hasOne here is just me testing diffrent stuff to see if i could get it to work.
  }
  </code></pre>
  
  <p>Shoulndt i be able to get the value from my User (WHERE id = id in the URL) to show up in my tasks show view with the belongsTo()? like so: <code>{{$tasks-&gt;userInfo-&gt;name}}</code> or am i totally off here?</p>
  
  <hr>
  
  <p>Update:
  Current Taskscontroller:</p>
  
  <pre><code>public function show($id)
      {
          $tasks = Tasks::findOrFail($id);
          $assignee = $tasks-&gt;assignee;
          return view('tasks.show')-&gt;withTasks($tasks);
      }
  </code></pre>
  
  <p>and my view <code>{{$tasks-&gt;assignee}}</code>, but its not showing anything, also i am trying to get the info of the assignee, but thanks for all the examples, they will be usefull later on.
  and the Model:     </p>
  
  <pre><code>public function assignee() {
          return $this-&gt;belongsTo('App\User', 'fk_user_assign_id', 'id');
      }
  </code></pre>