Download the PHP package adiafora/laravel-password-resets without Composer
On this page you can find all versions of the php package adiafora/laravel-password-resets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adiafora/laravel-password-resets
More information about adiafora/laravel-password-resets
Files in adiafora/laravel-password-resets
Package laravel-password-resets
Short Description The package allows you to reset the password using any field from the User table
License MIT
Informations about the package laravel-password-resets
Laravel. Reset a user's password using any field
Laravel offers an easy way to reset a user's password. But by default, the required field for the user that identifies the user when the password is reset is the email field. This package allows you to reset a user's password using any field from the User table. This can be a phone number, username, or any other unique field from the User table.
:wrench: Supported Versions
Versions will be supported for a limited amount of time.
Version | Laravel Version | Php Version | Support | |
---|---|---|---|---|
1.0 | <=5.5 | ^7.0 | Unsupported since 15-5-2018 | |
2.0 | ^6.0 | ^7.2 | ^8.0 | New features |
Installation
Run:
For Laravel < 5.5 Add in ServiceProvider to the providers array in config/app.php
:
Publish the configuration:
In the configuration file config/password_resets.php
, enter the name of the field that will be used to reset the password:
Please note! You may need to clear the config cache after this.
Finally, you'll also need to run migration on the package:
`
Usage
In your ResetPasswordController, simply replace Illuminate\Foundation\Auth\ResetsPasswords
trait with the Adiafora\PasswordResets\Auth\ResetsPasswords
trait.
And in your ForgotPasswordController, simply replace Illuminate\Foundation\Auth\SendsPasswordResetEmails
trait with the Adiafora\PasswordResets\Auth\SendsPasswordResetEmails
trait.
License
The MIT License (MIT). Please see License File for more information.