Notice that instead of giving URL directly for redirecting, we are using the route names. Also we are using Laravel's form spoofing. The form with POST method has a hidden input with name "_method" and value "DELETE". This tells Laravel to invoke DELETE method when the submit button is pressed. The view and edit buttons redirect to the corresponding routes.

The complete code for all views as well as the full code for model and controller can be found in our Github.

Once you have your model, controller and views set-up, you may go to /books to find the index of all books. The index has buttons for view, edit, delete and add book which points to the corresponding routes.