An open API service indexing awesome lists of open source software.

https://github.com/rap2hpoutre/create-user-command

🦀 Create User with artisan
https://github.com/rap2hpoutre/create-user-command

artisan artisan-command laravel

Last synced: 12 months ago
JSON representation

🦀 Create User with artisan

Awesome Lists containing this project

README

          

# Laravel User Command

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](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
```php
\Rap2hpoutre\CreateUser\Command::class,
```

## Usage

Define fillable attributes in your `User` class.

```
protected $fillable = ['name', 'email', 'role'];
```

Then, run `user:create` command.

![demo](demo.gif)

## Why

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