I'm trying to create a new route, and for the life of me can't figure out why it's returning an invalid route
response.
Here is the route (there are no filters on this route):
Route::get('api/books/{bookId}', 'BookController@getBook');
Here is the URL I use to query this route:
What is even stranger is that this route works:
Route::get('api/books', 'BookController@getBooks');
The route that works is listed BEFORE the one that doesn't, which is best practice in my understanding.
Even stranger, when I comment out the routes that do work, they still work when queried. I can only imagine that this is a caching issue, but as you will see below, I have cleared all the caches that I know about.
I have ran composer dump
and composer clear
and php artisan cache:clear
. Your thoughts are highly appreciated!