Download the PHP package noogic/laravel-cli-password-reset without Composer
On this page you can find all versions of the php package noogic/laravel-cli-password-reset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download noogic/laravel-cli-password-reset
More information about noogic/laravel-cli-password-reset
Files in noogic/laravel-cli-password-reset
Package laravel-cli-password-reset
Short Description An artisan command to reset password for one or all users in a laravel application
License MIT
Informations about the package laravel-cli-password-reset
A Laravel command to easily reset user passwords
This Laravel package adds the command password:reset
to your Laravel artisan commands.
Due to the common sense, this package is disabled in production environments. If you are in a production environment, you should never know any user's password. In case you want to test this command in production, just use an staging enviornment.
Installation
You can install this package as dev only dependency via composer using:
If you want to install as a direct dependency instead (not only for develop), then:
Just keep in mind that, anyways, it wont work in production environments for security reasons.
The package will automatically register its services provider.
Configuration
The package comes with its own configuration to locate de User class and define the default password.
You can change it by publishing the config/cli-password-reset.php
config file:
How to use
The default behaviour is to reset all User's password to the default password:
You can specify the password without changing the default value:
You can change the password only to specified users by passing the ids:
And finally, you can combine the specific password with the specified users