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?
给我你的怀抱2017-07-03 11:42:48
Grammar error
is 'CategoryController'
is not CategoryController
Route::resource('category', 'CategoryController');