Route::post('password/email', 'Auth\ForgotPasswordController@getResetToken');
Route::post('password/reset', 'Auth\ResetPasswordController@reset');
You may see the details of the controller here
protocol:://domain/password/email
Accept application/json
POST
email [your-email-address]
{
"data": {
"token": "770f6138f62a5da086881a4bf8799e7d7fc3fc60d30e6f35ad58e4f9496fd597"
},
"message": ""
}
You may see the controller details here
protocol:://domain/password/reset
Accept application/json
POST
email [your-email-address]
password [new-password]
password_confirmation [retype-new-password]
token [the-token-you-get-from-previous-one]
{
"data": null,
"message": "Your password has been reset!"
}
Please set
Accept
toapplication/json
in header. Then only the request will considered as api call.