title: Undefined property: App\Http\Controllers\UserController::$user
body: <pre><code>public function doFollow($id)
  {
      $user = $this-&gt;user-&gt;getById($id);        
  
      if (Auth::user()-&gt;isFollowing($id)) {
          Auth::user()-&gt;unfollow($id);
      } else {
          Auth::user()-&gt;follow($id);
  
          $user-&gt;notify(new FollowedUser(Auth::user()));
      }
  
      return redirect()-&gt;back();
  }
  </code></pre>