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
- Host: GitHub
- URL: https://github.com/rap2hpoutre/create-user-command
- Owner: rap2hpoutre
- License: mit
- Created: 2016-12-15T14:39:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T22:40:44.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T07:32:41.618Z (12 months ago)
- Topics: artisan, artisan-command, laravel
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 20
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel User Command
[](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.

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