2017 © Pedro Peláez
 

library laravel-cli-user

Quickly create users on command line

image

subdesign/laravel-cli-user

Quickly create users on command line

  • Thursday, November 9, 2017
  • by bszalai
  • Repository
  • 1 Watchers
  • 1 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

Laravel CLI User

Manage users easily on command line, (*1)

Laravel Cli User, (*2)

You can quickly create, delete and list users on command line, (*3)

Requirements

PHP 5.4+
Tested on Laravel 5.1, 5.2, 5.3, 5.4 and 5.7, (*4)

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., (*5)

Subdesign\LaravelCliUser\CliUserServiceProvider::class

Publish the config file, (*6)

php artisan vendor:publish --provider="Subdesign\LaravelCliUser\CliUserServiceProvider"

Configuration

Edit the config/cliuser.php config file to set where your User model exists., (*7)

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

Usage

Create user

php artisan cliuser:create

Show password letters, (*8)

php artisan cliuser:create --show-password

Create a user with random password, (*9)

php artisan cliuser:create 'John Doe' email@example.org --random-password --show-password

Delete user

Delete user by ID, (*10)

php artisan cliuser:delete <id>

Delete user by email, (*11)

php artisan cliuser:delete <email@example.com>

Of course do not enter < and > characters only an interger or string as email, (*12)

List users

php artisan cliuser:list

Credits

© 2017 Barna Szalai, (*13)

License

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

The Versions

09/11 2017

dev-master

9999999-dev https://github.com/subdesign/laravel-cli-user

Quickly create users on command line

  Sources   Download

MIT

The Requires

  • php ^5.4.0 || ^7.0

 

by Barna Szalai

laravel cli user-manager

07/05 2017

1.0.0

1.0.0.0 https://github.com/subdesign/laravel-cli-user

Quickly create users on command line

  Sources   Download

MIT

The Requires

  • php ^5.4.0 || ^7.0

 

by Barna Szalai

laravel cli user-manager