rap2hpoutre/create-user-command

Create a user with artisan command
12,942 20
Install
composer require rap2hpoutre/create-user-command
License:MIT
Last Updated:Mar 17, 2021
Links: GitHub  ·  Packagist
Maintainer: rap2hpoutre

Laravel User Command

Software License

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.

demo

Why

Sometimes, I have to manually create user (with no web interface).