dlucks / laravel-make-user
Laravel package for creating users by Artisan command
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2025-02-02 07:51:35 UTC
README
This is a simple Laravel package to create users by Artisan command.
Installation
Install package via composer:
composer require dlucks/laravel-make-user
Register service provider in config/app.php
of your project (you can skip
this step when using Laravel 5.5 or higher, because of the package discovery
feature):
'providers' => [ // ... MakeUser\Providers\MakeUserServiceProvider::class, ],
Copy configurations and translations into project:
php artisan vendor:publish --tag=make_user
Configuration
After publishing the vendor files there is a new configuration file
config/make_user.php
in your project. Within this file
you can set a couple of configurations:
Usage
To create a new user execute the make:user
command and set an
email address as a parameter:
php artisan make:user lucks.daniel@googlemail.com
During the command execution you will be asked for a password and for roles to be attached to the created user.