rap2hpoutre/create-user-command
Create a user with artisan command
12,958
20
| Install | |
|---|---|
composer require rap2hpoutre/create-user-command |
|
| Latest Version: | v0.1.4 |
| PHP: | >=5.6.4 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Mar 17, 2021 |
| Links: | GitHub · Packagist |
Maintainer: rap2hpoutre
Laravel User Command
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).
Related Packages
spresnac/laravel-artisan-database-helper
Some useful helper to handle database backup & restores
3,876
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.1.4 | >=5.6.4 | 5.* | MIT | |
| v0.1.3 | >=5.6.4 | 5.* | MIT | |
| v0.1.2 | >=5.6.4 | 5.* | MIT | |
| v0.1.1 | >=5.6.4 | 5.* | MIT | |
| v0.1.0 | >=5.6.4 | 5.* | MIT |