wrogati/user-seed

dev-master 2018-11-12 18:50 UTC

This package is not auto-updated.

Last update: 2024-10-24 02:49:59 UTC


README

Fill your users table with one artisan command, initiate with very simple command

How it woks

This package you will help to show some data of users, with just one command you will to fill the table 'users', and can choose by english names and portuguese names.

Pre-requisites

Laravel >= 5.4 version

Instruction to install

  1. Register the Service Provider in config(app.php)

     /*
      * Package Service Providers...
      */
     
     ...
      
     Wrogati\UserSeed\Providers\CmdTableServiceProvider::class,
     Wrogati\UserSeed\Providers\UserSeedServiceProvider::class,
    
  2. Configure the alias in config(app.php)

     ...
     
     'US' => Wrogati\UserSeed\Controllers\UserSeedController::class,
    
  3. Run composer

     composer require wrogati/user-seed
    

Usage

Run the command into terminal:

IF you want english names use 'us' in the option, see the example below

php artisan db:usseed --op=us

IF you want portuguese names use 'pt' in the option, see the example below

php artisan db:usseed --op=pt

After that, see the users table. The name, email and password are filled.

Aditional information

The password is encrypted but is '123456' int plan text, if you need to enter in the application with some user.

Disclaimer

Isn't recommended to use this package in production, is just solution to help to test your application. See the code and use as you want.