2017-09-26 152 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大聲笑,這些事情發生了 –

相關問題