定制 always-open/laravel-auth-notifications 二次开发

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

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

always-open/laravel-auth-notifications

最新稳定版本:v1.0.2

Composer 安装命令:

composer require always-open/laravel-auth-notifications

包简介

A Laravel package to notify your users when their password, two-factor authentication, or login status changes.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A Laravel package to notify your users when their password, two-factor authentication, or login status changes.

Installation

You can install the package via composer:

composer require always-open/laravel-auth-notifications

You can publish the config file with:

php artisan vendor:publish --provider="AlwaysOpen\AuthNotifications\AuthNotificationsServiceProvider" --tag="laravel-auth-notifications-config"

Usage

By default all of the notifications are turned off. To enable them, declare the appropriate environment variable like AUTH_NOTIFICATIONS_LOGIN_VALIDATED=true. Framework login events track the Illuminate\Auth\Events\Validated, Illuminate\Auth\Events\Failed, and Illuminate\Auth\Events\Lockout events.

For credential notifications, we are simply watching the user model for changes. If you'd rather fire those events manually, set the corresponding field to a blank string and dispatch AlwaysOpen\AuthNotifications\Events\LoginWasChanged, AlwaysOpen\AuthNotifications\Events\PasswordWasChanged, AlwaysOpen\AuthNotifications\Events\TwoFactorWasEnabled, or AlwaysOpen\AuthNotifications\Events\TwoFactorWasDisabled with the only parameter being the user object to send to.

You may also override the notifications that are sent by creating your own notifications via php artisan make:notification and overriding the class defined in the config/auth-notifications.php.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-05