HW08: Laravel Database and Validation due Tue 19 Mar 13:20

\begin{purpose}
In completing this assignment you will:
\begin{itemize}
\ite...
...he blade engine's protections against XSS attacks.
\end{itemize}
\end{purpose}

Allowed and Disallowed Resources

In completing this assignment you MAY use/access the following resources:

You may NOT use/access:

Failure to abide by these guidelines will result in a zero for the assignment and the incident will be reported to the university provost as a violation of the university academic integrity policy. A second incident of academic dishonesty (whether from this course or another computer science course) will result in an F in the course.

Details

You should complete each of these steps:
  1. Establish a model that maps to your books table.

  2. Modify the index route/view to pull book info and display it to the screen as you did in in HW #5.

  3. Implement the addbook form to trim, do validation, repopulate when validation fails, and safely save valid, entered values to the database. Your code should mitigate both CSRF and SQL injection attacks. The form should redirect to the home page after a success entry.

  4. Implement the bookdetail route/view to display a book's detailed information when the book title is clicked on the home page. This view should also provide buttons to modify and delete the book. If a book id is not provided as a query string parameter to the bookdetail page (or is invalid) then redirect to the error page with the book_not_found code.

Summary

By the end of this assignment the book application should be completely functional with the exception of user logins, sessions, and permissions. This includes: