Laravel: FatalErrorException
<p>I have problem with like system. If i click on like button it throws me an error: 
<strong>FatalErrorException in PostController.php line 80:<br>
  Class 'App\Http\Controllers\Like' not found</strong></p>

<p>Line 80 in my post Controller is: </p>

<pre><code>$like = new Like();
</code></pre>

<p>This is my full function: </p>

<pre><code>  public function postLikePost(Request $request){
  $post_id = $request['postId'];
  $is_like = $request['isLike'] === 'true' ? true : false;
  $update = false;
  $post = Post::find($post_id);
  if(!$post){
    return null;
  }
  $user = Auth::user();

  $like = $user-&gt;likes()-&gt;where('post_id', $post_id)-&gt;first();
  if($like){
    $already_like = $like-&gt;like;
    $update = true;
    if($already_like == $is_like){
      $like-&gt;delete();
      return null;
    }
  } else{
    $like = new Like();
  }
  $like-&gt;like = $is_like;
  $like-&gt;user_id = $user-&gt;id;
  $like-&gt;post_id = $post-&gt;id;


  if($update){
    $like-&gt;update();
  }else{
    $like-&gt;save();
  }
  return null;
}
</code></pre>

<p>Do you know where is the problem? Thank you.
(I am using Laravel v5.2.39)</p>