Downloads
Stars
Version
Easy laravel api password reset for your application
composer require global-devteam/laravel-api-password-reset
php artisan vendor:publish --tag=laravel-api-password-recovery
php artisan migrate
php artisan route:list | grep password
to see new routesThis package relies on the User.php
and it should be at the default location.
api/v1/auth/password
payload:
{
"email":"[email protected]"
}
This endpoint sends an email to the user so you must have your email server setup
api/v1/auth/password/show/{token}
This endpoint validates the token and it is valid you will get the token object otherwise an invalid message will be returned
api/v1/auth/password
payload:
{
"email":"[email protected]",
"password":"secret",
"password_confirmation":"secret",
"token": "k8sgO6"
}
This endpoint changes the password and sends an email to the user so you must have your email server setup