在我的路線文件我有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"
這將是你的鏈接:http://本地主機:8000 /請求復位passwor d – Abhishek