定制 noogic/laravel-cli-password-reset 二次开发

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

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

noogic/laravel-cli-password-reset

Composer 安装命令:

composer require noogic/laravel-cli-password-reset

包简介

An artisan command to reset password for one or all users in a laravel application

README 文档

README

This Laravel package adds the command password:reset to your Laravel artisan commands.

Due to the common sense, this package is disabled in production environments. If you are in a production environment, you should never know any user's password. In case you want to test this command in production, just use an staging enviornment.

Installation

You can install this package as dev only dependency via composer using:

composer require --dev noogic/laravel-cli-password-reset

If you want to install as a direct dependency instead (not only for develop), then:

composer require noogic/laravel-cli-password-reset

Just keep in mind that, anyways, it wont work in production environments for security reasons.

The package will automatically register its services provider.

Configuration

The package comes with its own configuration to locate de User class and define the default password.

'user' => 'App\User',
'password' => 'secret',

You can change it by publishing the config/cli-password-reset.php config file:

php artisan vendor:publish --provider="Noogic\PasswordReset\PasswordResetServiceProvider"

How to use

The default behaviour is to reset all User's password to the default password:

php artisan password:reset

You can specify the password without changing the default value:

php artisan password:reset --password=anotherpassword

You can change the password only to specified users by passing the ids:

php artisan password:reset --id=1 --id=5 --id=12

And finally, you can combine the specific password with the specified users

php artisan password:reset --password=anotherpassword --id=1 --id=3

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-07-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固