title: Method App\Follower::__toString() must not throw an exception: Error
body: <p>I am making a follower user controller in laravel.</p>
  
  <p>My controller has the following function:</p>
  
  <pre><code>public function follow($id)
  {
      if (Auth::user()) {
          $follower = Auth::user()-&gt;user_id;
          $user_to_follow = User::Find($id);
          if ($user_to_follow) {
              $follower = new Follower;
              $follower-&gt;follower_id = $follower;
              $follower-&gt;user_id = $user_to_follow;
              if ($follower-&gt;save()) {           &lt;-- receiving error here
                  return "done";
              } else {
                  return redirect('/')-&gt;back();
              }
          }
          return $follower;
      } 
  }
  </code></pre>
  
  <p><strong>Follower</strong> Model:</p>
  
  <pre><code> protected $table = "followers";
  
  protected $fillable = ['follower_id', 'user_id', 'accepted'];
  
  public function user()
  {
      return $this-&gt;belongsTo('App\User', 'user_id');
  }
  </code></pre>
  
  <p><strong>User</strong> Model</p>
  
  <pre><code>public function followers()
  {
      return $this-&gt;hasMany('App\Follower', 'user_id');
  }
  </code></pre>
  
  <p>And in View</p>
  
  <pre><code>&lt;a href="/follow/2"&gt;Follow&lt;/a&gt;
  </code></pre>
  
  <p>On Clicking Follow I receive error,</p>
  
  <blockquote>
    <p>Method App\Follower::__toString() must not throw an exception, caught
    Illuminate\Database\Eloquent\JsonEncodingException: Error encoding
    model [App\Follower] with ID [] to JSON: Recursion detected</p>
  </blockquote>
  
  <p>Can Someone explain What this error is and how to remove this?
  Thank you in advance..</p>