Routes defined by Laravel resource can only access index,. The rest of them return 404.

Laravel version5.5, uses php artisan serve to start the metropolis server

to confirm that the route has been registered, the result obtained by using php artisan route:list is as follows

clipboard.png

visit / batches and return 200 correctly

visit / batches/1 and return 404

has used php artisan route:clear to clear the routing cache.

I am puzzled.

Feb.28,2021

is bastch/1 singular try

Menu