定制 shibly/password-notify 二次开发

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

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

shibly/password-notify

最新稳定版本:v1.0.3

Composer 安装命令:

composer require shibly/password-notify

包简介

Laravel package to notify user of password changes.

README 文档

README

Latest Version PHP Version Laravel Version

This Laravel package automatically sends a notification to users when their password is changed. It does not store or email the new password.

Installation

You can easily install this package via Composer:

composer require shibly/password-notify

Publish Configuration (Optional)

Publish the configuration file to customize package behavior:

php artisan vendor:publish --tag=config

This will publish passwordnotify.php into your application's config directory.

Configuration

Modify config/passwordnotify.php to define the password field:

return [
    'password_field' => 'password',
];

You can customize this field if your application uses a different naming convention.

Usage

When changing a user's password, the notification will automatically be sent if the configured password field changes:

use Illuminate\Support\Facades\Hash;

$user = auth()->user();
$user->update([
    'password' => Hash::make('MySecurePassword123'),
]);

You don't need to do anything else. The package listens for password changes and sends a notification automatically.

Example Email Notification

The user will receive a notification similar to:

Hello, John Doe!

Your password has been successfully changed.

If you did not change your password, please contact support immediately.

Queueing Notifications (Recommended)

By default, notifications will be queued. Ensure your Laravel queue worker is running:

php artisan queue:work

Requirements

  • PHP ^8.1
  • Laravel ^11.0|^12.0

Contributing

Feel free to submit issues or pull requests to improve this package!

License

This package is open-source and licensed under the [MIT license].

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固