Symfony\Component\HttpKernel\Exception\NotFoundHttpException Laravel

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

    In my scenario, the problem was I've used an extra prefix slash like:

    Route::get('/plans', 'PayPalController@getPlansList')->name('paypal.plans');
    

    instead of:

    Route::get('plans', 'PayPalController@getPlansList')->name('paypal.plans');
    

提交回复
热议问题