2017 © Pedro Peláez
 

library make

This package provides you with a simplistic `php artisan make:user` command

image

laracademy/make

This package provides you with a simplistic `php artisan make:user` command

  • Monday, February 13, 2017
  • by Laracademy
  • Repository
  • 1 Watchers
  • 16 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 5 % Grown

The README.md

Laracademy Generators

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Laracademy make:user Command - provides you with a simplistic artisan command to generate users from the console., (*2)

Author(s): * Laracademy (@laracademy, michael@laracademy.co), (*3)

Requirements

  1. PHP 5.6+
  2. Laravel 5.2+

Usage

Step 1: Install through Composer

composer require "laracademy/commands.make-user"

Step 2: Add the Service Provider

The easiest method is to add the following into your config/app.php file, (*4)

Laracademy\Make\MakeServiceProvider::class

Step 3: Artisan Command

Now that you have successfully installed the package you can run php artisan. You should now see an option for make:user, (*5)

make:user [options] [--] <email>

Valid Options

  • name
    • This is the name you would like to assign to the user, if not supplied the email address will be used.
  • password
    • This is the password you would like to assign to the user, if not supplied a random 8 characters will be used.

Examples

Generating a random user

php artisan make:user support@laracademy.co

Assigning the user's name when generating their account

php artisan make:user support@laracademy.co --name=Mickey

Assigning the user's password when generating their account

php artisan make:user support@laracademy.co --password=Y

Accessing a different User Model

php artisan make:user support@laracademy.co --userclass=\\App\\Models\\User

please note that double backslashes must be used in order to be picked up correctly, (*6)

License

make-user is open-sourced software licensed under the MIT license, (*7)

Bug Reporting and Feature Requests

Please add as many details as possible regarding submission of issues and feature requests, (*8)

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*9)

The Versions

13/02 2017

dev-master

9999999-dev

This package provides you with a simplistic `php artisan make:user` command

  Sources   Download

MIT

by Michael McMullen

laravel

14/11 2016

1.2

1.2.0.0

This package provides you with a simplistic `php artisan make:user` command

  Sources   Download

MIT

by Michael McMullen

laravel

10/11 2016

1

1.0.0.0

This package provides you with a simplistic `php artisan make:user` command

  Sources   Download

MIT

by Michael McMullen

laravel