Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel

前端 未结 9 1414
情话喂你
情话喂你 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:34

    I was getting the same error exception while one project was working but another project with same .htaccess file on same localhost was not working. Turns out since my project directory has capital letter in it, URL also should be capital for routing to work. localhost/minorweb/public/account was not working but localhost/minorWeb/public/account with W capital was working. so, if nothing seems to solve the problem, check your URL is matched with project directory with case.

提交回复
热议问题