Fix in PostsController.php file