Download the PHP package always-open/laravel-auth-notifications without Composer
On this page you can find all versions of the php package always-open/laravel-auth-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download always-open/laravel-auth-notifications
More information about always-open/laravel-auth-notifications
Files in always-open/laravel-auth-notifications
Package laravel-auth-notifications
Short Description A Laravel package to notify your users when their password, two-factor authentication, or login status changes.
License MIT
Homepage https://github.com/always-open/laravel-auth-notifications
Informations about the package laravel-auth-notifications
Laravel Auth Notifications
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:
You can publish the config file with:
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
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Tom Schlick
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-auth-notifications with dependencies
spatie/laravel-package-tools Version ^1.4.3
illuminate/contracts Version >=8.37