Download the PHP package dlucks/laravel-make-user without Composer
On this page you can find all versions of the php package dlucks/laravel-make-user. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dlucks/laravel-make-user
More information about dlucks/laravel-make-user
Files in dlucks/laravel-make-user
Package laravel-make-user
Short Description Laravel package for creating users by Artisan command
License MIT
Homepage https://github.com/dlucks/laravel-make-user
Informations about the package laravel-make-user
Laravel MakeUser (Laravel 5 Package)
This is a simple Laravel package to create users by Artisan command.
Installation
Install package via composer:
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):
Copy configurations and translations into project:
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:
Parameter | Description |
---|---|
user_class |
Class name of the user model (default 'App\User' ). |
role_class |
Class name of the role model (default 'App\Role' ). |
user_validation_rules |
Array of validation rules to use for user creation. |
user_roles_relation_method |
Name of the method in user model to access the BelongsToMany relation to users roles (default roles ). |
hash_password |
Flag to indicate if to hash the given password before saving (default true ). |
Usage
To create a new user execute the make:user
command and set an
email address as a parameter:
During the command execution you will be asked for a password and for roles to be attached to the created user.