rap2hpoutre / create-user-command by rap2hpoutre

Create a user with artisan command
12,832
20
4
Package Data
Maintainer Username: rap2hpoutre
Maintainer Contact: raphaelht@gmail.com (rap2h)
Package Create Date: 2016-12-15
Package Last Update: 2021-03-17
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-19 15:01:21
Package Statistics
Total Downloads: 12,832
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 20
Total Watchers: 4
Total Forks: 2
Total Open Issues: 1

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