In my routes file I have
Route::post('/request-rest-password', 'HomeController@requestResetPwd');
IN the controller
public function requestResetPwd(Request $request){
return $request;
}
Now whenever I try post it always throws an error
"exception": "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException","file": "/var/www/html/freelancer/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php",
Where could I be going wrong Example of a post
$ curl -X POST -H "Accept: application/json" -F "[email protected]" -F .......
"http://localhost:8000/request-reset-pwd"