{"id":21557074,"url":"https://github.com/always-open/laravel-auth-notifications","last_synced_at":"2025-10-11T00:13:22.414Z","repository":{"id":56827387,"uuid":"422753740","full_name":"always-open/laravel-auth-notifications","owner":"always-open","description":"A Laravel package to notify your users when their password, two-factor authentication, or login status changes.","archived":false,"fork":false,"pushed_at":"2025-02-06T04:51:06.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T05:04:00.467Z","etag":null,"topics":["auth","authentication","laravel","package","php8"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/always-open.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null}},"created_at":"2021-10-30T01:20:28.000Z","updated_at":"2024-12-26T04:14:50.000Z","dependencies_parsed_at":"2022-09-20T22:31:18.868Z","dependency_job_id":null,"html_url":"https://github.com/always-open/laravel-auth-notifications","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/always-open%2Flaravel-auth-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/always-open%2Flaravel-auth-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/always-open%2Flaravel-auth-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/always-open%2Flaravel-auth-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/always-open","download_url":"https://codeload.github.com/always-open/laravel-auth-notifications/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","authentication","laravel","package","php8"],"created_at":"2024-11-24T08:10:52.206Z","updated_at":"2025-10-11T00:13:17.377Z","avatar_url":"https://github.com/always-open.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Auth Notifications\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/always-open/laravel-auth-notifications.svg?style=flat-square)](https://packagist.org/packages/always-open/laravel-auth-notifications)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/always-open/laravel-auth-notifications/run-tests?label=tests)](https://github.com/always-open/laravel-auth-notifications/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/always-open/laravel-auth-notifications/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/always-open/laravel-auth-notifications/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/always-open/laravel-auth-notifications.svg?style=flat-square)](https://packagist.org/packages/always-open/laravel-auth-notifications)\n\n---\nA Laravel package to notify your users when their password, two-factor authentication, or login status changes.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require always-open/laravel-auth-notifications\n```\n\nYou can publish the config file with:\n```bash\nphp artisan vendor:publish --provider=\"AlwaysOpen\\AuthNotifications\\AuthNotificationsServiceProvider\" --tag=\"laravel-auth-notifications-config\"\n```\n\n## Usage\n\nBy 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. \n\nFor 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.\n\nYou 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`.\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Tom Schlick](https://github.com/tomschlick)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falways-open%2Flaravel-auth-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falways-open%2Flaravel-auth-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falways-open%2Flaravel-auth-notifications/lists"}