newtovaux / laravel-console-user-tools
Artisan commands for generating passwords and changing Laravel user passwords.
Package info
github.com/newtovaux/laravel-console-user-tools
pkg:composer/newtovaux/laravel-console-user-tools
0.0.3
2026-04-21 10:19 UTC
Requires
- php: ^8.3
- illuminate/console: ^12.0
- illuminate/contracts: ^12.0
- illuminate/database: ^12.0
- illuminate/support: ^12.0
Requires (Dev)
- orchestra/testbench: ^10.0
- phpunit/phpunit: ^11.0
README
Artisan commands for generating passwords and changing user passwords in Laravel 13.
Installation
composer require newtovaux/laravel-console-user-tools php artisan vendor:publish --tag=user-tools-config
Commands
Generate a password
php artisan user-tools:create php artisan user-tools:create --length=24 php artisan user-tools:create --no-symbols
Change a user's password
php artisan user-tools:user-password dan@example.com php artisan user-tools:user-password dan@example.com --generate php artisan user-tools:user-password 15 --column=id
List all users
php artisan user-tools:list-users
Change a user's email address
php artisan user-tools:user-amend-email dan@example.com php artisan user-tools:user-amend-email 15 --column=id php artisan user-tools:user-amend-email dan@example.com --email=new@example.com
Practical notes
First, this package assumes your user table has a password column and your configured user model is Eloquent-backed, which is the normal Laravel setup.
Second, the application’s configured auth user model by default so the package stays reusable across projects instead of hard-coding App\Models\User. That aligns well with Laravel’s package and auth conventions.