Looking to hire Laravel developers? Try LaraJobs

laravel-users-cli maintained by ecomputer

Description
Create, manage and delete the standard App\User model throgh your terminal Edit
Last update
2017/02/16 17:32 (dev-master)
License
Links
Downloads
64

Comments
comments powered by Disqus

Laravel users CLI

Create, manage and delete the standard App\User model throgh your terminal

Installation

  1. Run on your Laravel project
composer require ecomputer/laravel-users-cli
  1. In your config/app.php file, register Ecomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::class as a new provider
'providers' => [
  // ...
  Ecomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::class,
  // ...
]
  1. Done!

Example

List command example

Available commands

Create

Create a basic Laravel user, step by step

php artisan ecomputer:users:create

Delete

Delete a user. If you run the command without parameters Artisan will give you a choice filled with all the registered users. You can select an user with the arrow keys, with a numeric option, or autocompleting while writing the name of the user.

php artisan ecomputer:users:delete

If you know the ID of the user you want to delete, just pass it as a parameter.

php artisan ecomputer:users:delete --id=1

In all cases, the assistant will be gentle and will ask you for confirmation (defaults to no, for avoiding accidents).

List

Gives a complete list of all the registered users.

php artisan ecomputer:users:list