rap2hpoutre / create-user-command
Create a user with artisan command
Installs: 12 844
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 4
Forks: 2
Open Issues: 1
Requires
- php: >=5.6.4
- illuminate/console: 5.*
- illuminate/support: 5.*
README
Create a user with artisan command.
Install
Install via composer
composer require rap2hpoutre/create-user-command
Add the Create User command to app/Console/Kernel.php
in protected $commands
array
\Rap2hpoutre\CreateUser\Command::class,
Usage
Define fillable attributes in your User
class.
protected $fillable = ['name', 'email', 'role'];
Then, run user:create
command.
Why
Sometimes, I have to manually create user (with no web interface).