You can add as many URLs as you want, for example:
Route::get('/books/{id}/{name}', ' HomeController@showBook ');
Now that you want to create the URL of this page, you can do the following:
URL::action(' HomeController@showBook ', ['id' => 1, 'name' => 'My awesome book']);
Update:
If you are sure that there will never be two books with the same name, you can simply use the name of the book in the URL. You just need to do this:
Route::get('/books/{name}', ' HomeControllers@showBook ');
In your showBook function showBook you need to get the book from the database using name instead of id . I highly recommend using both an identifier and a name, because otherwise you might get into trouble because I don't think the book name will always be unique.
source share