search

Home  >  Q&A  >  body text

php - The resource routing of laravel5.4 reports an error. What is the reason?

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?

世界只因有你世界只因有你2690 days ago814

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-07-03 11:42:48

    Grammar error

    is 'CategoryController' is not CategoryController

    Route::resource('category', 'CategoryController');

    reply
    0
  • Cancelreply