langleyfoxall / laravel-authentication-log
Logs authentication requests
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/langleyfoxall/laravel-authentication-log
Requires (Dev)
- orchestra/testbench: ^7.5
 - phpunit/phpunit: ^9.5
 
- dev-master
 - 0.2.0
 - v0.1
 - dev-feature/select-any-guard-functionality
 - dev-fix/merges-caused-failing-tests
 - dev-refactors
 - dev-feature/credential-encryption
 - dev-feature/specifying-guards
 - dev-fix/correctly-omit-fields
 - dev-feature/store-register-users
 - dev-feature/log-lockout-event
 - dev-feature/log-password-reset-event
 - dev-feature/updating-documentation
 - dev-feature/store-ip-in-log
 - dev-feature/writing-tests
 - dev-feature/ammending-documentation
 - dev-feature/using-subscribers
 
This package is auto-updated.
Last update: 2025-10-06 21:26:08 UTC
README
Description
A package to listen for various Authenticatable events and log them in a database
Installation
To install, enter the following inside the terminal within your working directory:
composer require langleyfoxall/laravel-authentication-log
Once the package has been installed, run your migrations and ensure to use the trait HasAuthenticatable in all models to be logged.
All events are logged within the authentication_log_records table.
Configuration
Within the auth-log.php config file, you may specfiy what you would like to log.
You may change:
- Events to log, by commenting out the unwanted events,
 - Credentials to not be logged, by adding the fields within 
credentialsToOmit, - Fields to not be logged, by adding the fields within 
fieldsToOmit, - Accepted Guards, by adding the specified guards within 
acceptedGuards 
Commands
php artisan laravel-authentication-log:showlog
This command will display the data stored in the Authentication Log Records table
Features
This package can log the following:
- Successful Logins
 - Failed Logins
 - Successful Logouts
 - Password Resets
 - Lockouts
 - Registering New Users
 
Features can be configured through config/auth-log.php.