bitboss-hub / laravel-terminal-users
此包提供了一些从Laravel CLI管理用户的函数
v0.1.3
2022-02-16 09:45 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^7.0 | ^8.0 | ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-09-09 04:20:04 UTC
README
此包提供了一些从laravel artisan终端管理用户的函数
安装
您可以通过composer安装此包
composer require bitboss-hub/laravel-terminal-users
您可以使用以下命令发布配置文件:
php artisan vendor:publish --tag="manage-terminal-users-config"
这是发布配置文件的内容
return [ /** * With field to check when the user can prompt. Ex: email, id */ 'field_to_check' => 'email', /** * Which field to update. Ex: password */ 'field_to_update' => 'password', /** * Should the password be encrypted? Default value: hash. Possible values: plain */ 'hash' => 'hash', /** * Which is the authenticable model? If null, we get it from the auth configuration */ 'model' => null, /** * Express optional password validation using Laravel Validation syntax */ 'validation' => null ];
使用方法
您可以使用以下方式调用命令:
> php artisan bitboss:manage-users
然后,按照脚本的指示操作。
What's the user's email?:
> ...
提示输入邮箱,或配置文件中定义的 field_to_check
字段的其他字段。
Ok, now choose a password:
> ...
提示输入找到的用户的密码。
测试
composer test
更新日志
请参阅 更新日志 了解最近的变化。
贡献
请参阅 贡献指南 了解详细信息。
安全漏洞
请参阅 我们的安全策略 了解如何报告安全漏洞。
鸣谢
许可协议
MIT许可(MIT)。请参阅 许可文件 了解更多信息。