2017 © Pedro Peláez
 

library laravel-make-user

Laravel package for creating users by Artisan command

image

dlucks/laravel-make-user

Laravel package for creating users by Artisan command

  • Friday, September 8, 2017
  • by dlucks
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel MakeUser (Laravel 5 Package)

This is a simple Laravel package to create users by Artisan command., (*1)

Installation

Install package via composer:, (*2)

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):, (*3)

'providers' => [

    // ...

    MakeUser\Providers\MakeUserServiceProvider::class,
],

Copy configurations and translations into project:, (*4)

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:, (*5)

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:, (*6)

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., (*7)

The Versions

08/09 2017

dev-master

9999999-dev https://github.com/dlucks/laravel-make-user

Laravel package for creating users by Artisan command

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Daniel Lucks

08/09 2017

1.0.1

1.0.1.0 https://github.com/dlucks/laravel-make-user

Laravel package for creating users by Artisan command

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Daniel Lucks

07/09 2017

1.0.0

1.0.0.0 https://github.com/dlucks/laravel-make-user

Laravel package for creating users by Artisan command

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Daniel Lucks