Laravel Command Create User
Laravel command for rapid creating an user with default table, (*1)
Installation
You can use composer to install the package, (*2)
composer require spacedog4/ccreateuser
, (*3)
Next add the Spacedog4\Command\UserCreaterCommand
class to your console kernel, (*4)
// app/Console/Kernel.php
protected $commands = [
...
\Spacedog4\Command\UserCreaterCommand::class,
]
Requirements
This command just works with the default users table from laravel, it must have:
- an User Model app/User
- a Laravel users table with the columns name
, email
and password
, (*5)
Usage
This command will create an user, (*6)
php artisan user-create {name} {email} {password}
, (*7)
Where..., (*8)
name
is the user's namebr/
email
is user's emailbr/
password
is user's password, it will be encrypted by Laravel Hash, (*9)