Package Data | |
---|---|
Maintainer Username: | bszalai |
Maintainer Contact: | szalai.b@gmail.com (Barna Szalai) |
Package Create Date: | 2017-05-06 |
Package Last Update: | 2019-02-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-25 15:11:40 |
Package Statistics | |
---|---|
Total Downloads: | 821 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 2 |
Manage users easily on command line
You can quickly create, delete and list users on command line
PHP 5.4+
Tested on Laravel 5.1, 5.2, 5.3, 5.4 and 5.7
composer require subdesign/laravel-cli-user:^1.0.0
Add the following line to the service providers array in the config/app.php
file
Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Subdesign\LaravelCliUser\CliUserServiceProvider::class
Publish the config file
php artisan vendor:publish --provider="Subdesign\LaravelCliUser\CliUserServiceProvider"
Edit the config/cliuser.php
config file to set where your User model exists.
return [
'model' => 'App\User'
];
php artisan cliuser:create
Show password letters
php artisan cliuser:create --show-password
Create a user with random password
php artisan cliuser:create 'John Doe' email@example.org --random-password --show-password
Delete user by ID
php artisan cliuser:delete <id>
Delete user by email
php artisan cliuser:delete <email@example.com>
Of course do not enter < and > characters only an interger or string as email
php artisan cliuser:list
© 2017 Barna Szalai
The MIT License (MIT). Please see License File for more information.