This assignment will use Laravel and the chinook SQLite database.
All Laravel assignments, labs, and class demos will build on the same installation. Start this assignment from the same installation we did in class.
Create a page with the route
/genres that displays all genres from the
genres table. Define a route that maps to a controller called
Each genre should be an anchor that links to
GENRE_NAME is replaced with each genre, i.e. Rock, Blues, Reggae, etc.
Next, create a page with the route
/tracks. This page should display all tracks for the
genre query string parameter. For each track, display the following information:
/tracks route should map to a controller called
To access the
genre query string parameter value, use the
query() method off of the request object. Check out the “Retrieving Input From The Query String” documentation to see an example.
php artisan make:controller GenresController.