Wallogit.com
2017 © Pedro Peláez
Create, manage and delete the standard App\User model throgh your terminal Edit
Create, manage and delete the standard App\User model throgh your terminal, (*1)
Run on your Laravel project, (*2)
composer require ecomputer/laravel-users-cli
In your config/app.php file, register Ecomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::class as a new provider, (*3)
'providers' => [ // ... Ecomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::class, // ... ]
Done!, (*4)
, (*5)
Create a basic Laravel user, step by step, (*6)
php artisan ecomputer:users:create
Delete a user. If you run the command without parameters Artisan will give you a choice filled with all the registered users. You can select an user with the arrow keys, with a numeric option, or autocompleting while writing the name of the user., (*7)
php artisan ecomputer:users:delete
If you know the ID of the user you want to delete, just pass it as a parameter., (*8)
php artisan ecomputer:users:delete --id=1
In all cases, the assistant will be gentle and will ask you for confirmation (defaults to no, for avoiding accidents)., (*9)
Gives a complete list of all the registered users., (*10)
php artisan ecomputer:users:list