akira / laravel-auth-logs
This is my package laravel-auth-logs
Fund package maintenance!
Akira
Requires
- php: ^8.3
- illuminate/contracts: ^10.0||^11.0
- pinkary-project/type-guard: ^0.1.0
- spatie/laravel-package-tools: ^1.18.3
Requires (Dev)
- larastan/larastan: ^2.9.12
- laravel/pint: ^1.20
- nunomaduro/collision: ^8.6.1||^7.10.0
- orchestra/testbench: ^9.9.0||^8.22.0
- pestphp/pest: ^3.7.4
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- pestphp/pest-plugin-type-coverage: ^3.2.3
- phpstan/extension-installer: ^1.4.3
- phpstan/phpstan-deprecation-rules: ^1.2.1
- phpstan/phpstan-phpunit: ^1.4.2
- rector/rector: ^1.2.10
- spatie/laravel-ray: ^1.39
This package is auto-updated.
Last update: 2025-01-30 01:56:32 UTC
README
This package logs all authentication events in your Laravel application. It logs the following events:
- Login
- Logout
- Failed login
Features
- Logs all authentication events
- Notification on failed login
- Notification on new device login
Requirements
- PHP 8.3 or higher
- Laravel 11.0 or higher
Installation
You can install the package via composer:
composer require akira/laravel-auth-logs
and then run the install command:
php artisan auth-logs:install
This is the contents of the published config file:
return [
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-auth-logs-views"
Usage
To use the package all you need to do is add the AuthLogs
trait to your User
model.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
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.