定制 joepriest/laravel-password-reset 二次开发

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

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

joepriest/laravel-password-reset

最新稳定版本:v1.0.2

Composer 安装命令:

composer require joepriest/laravel-password-reset

包简介

A simple artisan command to reset user passwords.

README 文档

README

A simple artisan command to reset user passwords.

Latest Stable Version Total Downloads License Actions Status

Installation

Install the package via Composer:

composer require joepriest/laravel-password-reset

Usage

To reset a password, run user:reset-password from your console, with the following options:

  • --user=: The ID of the user
  • --password=: The new password
  • --R|random: Use a random password

If no user ID is provided, you will be asked to choose a user (searching the name field by default, but this can be overridden).

If no new password is provided, and the --random flag is not set, you will be asked for one (a random one will be suggested).

Configuration

  • user_model: The path to the user model (defaults to App\Models\User::class)
  • search_field: The field to be used when searching for a user (defaults to name)
  • password: The password field which the command will reset (defaults to password)

If you wish to override these settings, publish the configuration file:

php artisan vendor:publish

Then alter the options in config/password-reset.php.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-30