ecomputer/laravel-users-cli
Composer 安装命令:
composer require ecomputer/laravel-users-cli
包简介
Create, manage and delete the standard App\User model throgh your terminal Edit
README 文档
README
Create, manage and delete the standard App\User model throgh your terminal
Installation
- Run on your Laravel project
composer require ecomputer/laravel-users-cli
- In your
config/app.phpfile, registerEcomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::classas a new provider
'providers' => [ // ... Ecomputer\LaravelUsersCLI\LaravelUsersCLIServiceProvider::class, // ... ]
- Done!
Example
Available commands
Create
Create a basic Laravel user, step by step
php artisan ecomputer:users:create
Delete
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.
php artisan ecomputer:users:delete
If you know the ID of the user you want to delete, just pass it as a parameter.
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).
List
Gives a complete list of all the registered users.
php artisan ecomputer:users:list
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2017-02-16
