View All Reviews on a Particular Movie

Learn how to retrieve records based on a specific movie ID in the database.

Setting up the controller

Users want to be able to read other reviews as well as their own. This is where the view all reviews feature is useful. By passing the movie_id, the controller simply issues a request to the database and retrieves all the reviews on the movie.

Get hands-on with 1400+ tech skills courses.