LaravelPackages.net
Acme Inc.
Toggle sidebar
subdesign/laravel-cli-user

Quickly create users on command line

830
1
1.0.0
About subdesign/laravel-cli-user

subdesign/laravel-cli-user is a Laravel package for quickly create users on command line. It currently has 1 GitHub stars and 830 downloads on Packagist (latest version 1.0.0). Install it with composer require subdesign/laravel-cli-user. Discover more Laravel packages by subdesign or browse all Laravel packages to compare alternatives.

Last updated

Laravel CLI User

Manage users easily on command line

Laravel Cli User

You can quickly create, delete and list users on command line

Requirements

PHP 5.4+
Tested on Laravel 5.1, 5.2, 5.3, 5.4 and 5.7

Installation

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"

Configuration

Edit the config/cliuser.php config file to set where your User model exists.

return [
    'model' => 'App\User'
];

Usage

Create 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 protected] --random-password --show-password

Delete user

Delete user by ID

php artisan cliuser:delete <id>

Delete user by email

php artisan cliuser:delete <[email protected]m>

Of course do not enter < and > characters only an interger or string as email

List users

php artisan cliuser:list

Credits

© 2017 Barna Szalai

License

The MIT License (MIT). Please see License File for more information.

Star History Chart