2017-09-26 150 views
0

在我的路线文件我有Laravel后请求返回的方法不允许

Route::post('/request-rest-password', '[email protected]'); 

在控制器

public function requestResetPwd(Request $request){ 
     return $request; 
    } 

现在每当我试图将它张贴总是抛出一个错误

“异常”: “Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException”,“file”: “/ var/ww W/HTML /自由职业者/供应商/ laravel /框架/ src目录/照亮/路由/ RouteCollection.php”,

在哪里可以

$ curl -X POST -H "Accept: application/json" -F "[email protected]" -F ....... 
     "http://localhost:8000/request-reset-pwd" 
+1

这将是你的链接:http://本地主机:8000 /请求复位passwor d – Abhishek

回答

1

你有我可以去后的错误 例错字:

路线:request-rest-password
POST:request-reset-pwd

+0

谢谢我看到了我的愚蠢的错误花了1小时调试 –

+0

@GEOFFREYMWANGI大声笑,这些事情发生了 –

相关问题