rap2hpoutre/create-user-command

Create a user with artisan command

Maintainers

Package info

github.com/rap2hpoutre/create-user-command

pkg:composer/rap2hpoutre/create-user-command

Statistics

Installs: 12 942

Dependents: 0

Suggesters: 0

Stars: 20

Open Issues: 1

v0.1.4 2016-12-15 15:57 UTC

This package is auto-updated.

Last update: 2026-03-18 09:17:33 UTC


README

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).