Added index() in PostsController.php