Software Engineer · Teacher · Author · Vegan

Laravel 2

This assignment will use Laravel and the chinook SQLite database.

All Laravel assignments, labs, and class demos will build on the same installation.

Editing a Playlist Name

Next to each playlist on the /playlists page, display an “Edit” link. When this link clicked, it will take you to /playlists/{id}/edit, where the user is presented with a form prepopulated with the name of the playlist that was clicked.

When the user hits the “Save” button, the following should happen:

Check out the Laravel documentation on how to update records using Laravel’s Query Builder.

Deleting a Playlist

Next to each playlist on the /playlists page, also display a “Delete” link. When this is clicked, the playlist will be deleted and the user is redirected back to the /playlists page. You shouldn’t see the playlist on the page anymore.

Check out the Laravel documentation on how to delete records using Laravel’s Query Builder.

Other Requirements

Submission

Please push up your code including the database to GitHub to the same repository as last week (itp405-laravel-assignments). You should already have connected your GitHub repository to Heroku for automatic deployments. If you haven’t, follow these instructions. Verify that your app has been deployed and it works on Heroku. Send an email to me and the TA with the repository URL and the URL to the live site on Heroku.