First I registered the route in the routing file, the code is as follows:
Then I used php artisan to produce the route and an error occurred, as follows:
I implemented the resource routing method in the controller, as follows:
Finally, there was still an error when accessing in the browser, as follows:
Please gods, what is the reason for this?
Grammar error
is
'CategoryController'
is notCategoryController