定制 sergeybruhin/laravel-user-commands 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sergeybruhin/laravel-user-commands

最新稳定版本:v0.1.0

Composer 安装命令:

composer require sergeybruhin/laravel-user-commands

包简介

Artisan commands for managing Laravel users

README 文档

README

Latest Version on Packagist Total Downloads

Artisan commands to create, delete, and change passwords for Laravel users.

Installation

You can install the package via composer:

composer require sergeybruhin/laravel-user-commands

Optionally publish the config:

php artisan vendor:publish --provider="SergeyBruhin\LaravelUserCommands\Providers\LaravelUserCommandsServiceProvider" --tag="config"

Commands

users:create

Creates a new user. Prompts interactively if options are omitted. Sets email_verified_at automatically.

# Interactive
php artisan users:create

# Non-interactive
php artisan users:create --name="John Doe" --email="john@example.com" --password="secret123"

users:change-password

Changes the password of an existing user. When run without --password, prompts for the new password and a confirmation.

# Interactive
php artisan users:change-password

# Non-interactive
php artisan users:change-password --email="john@example.com" --password="newpassword"

users:delete

Deletes an existing user. Shows user details and asks for confirmation unless --force is passed.

# Interactive (with confirmation prompt)
php artisan users:delete

# Target a specific user
php artisan users:delete --email="john@example.com"

# Skip confirmation
php artisan users:delete --email="john@example.com" --force

Configuration

// config/laravel-user-commands.php
return [
    'user_model'          => \App\Models\User::class,
    'min_password_length' => 6,
];
Key Default Description
user_model App\Models\User Eloquent model used for all user operations.
min_password_length 6 Minimum character length enforced on create and change-password.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email sundaycreative@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固