Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel

前端 未结 9 1435
情话喂你
情话喂你 2020-12-01 04:37

I am trying to use RESTful controller. Here is my Route.php:

Route::resource(\'test\', \'TestController\');
Route::get(\'/\', function()
{
    r         


        
9条回答
  •  广开言路
    2020-12-01 05:12

    In my case the problem was that i called the wrong route in postman.

    Wrong route : http://localhost:8000/methodName

    Correct route : http://localhost:8000/api/methodName

    I forgot to add "/api".

提交回复
热议问题