laravel-console-user-tools maintained by newtovaux
Laravel Console User Tools
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.