Laravel-Challenge-Cleanup-Routes
Laravel-Challenge-Cleanup-Routes copied to clipboard
Challenge accepted
Regarding some changes I made on BooksRoutesTest.php
, I noticed that a Book model method automatically fills out the slug
attribute with a string consisting of the model's name
and id
attributes, so I decided to change the route parameter into $book->slug
. (line 92)