Track, query, and act on authentication activity in your Laravel application. Automatically records successful and failed sign-ins, with optional notifications and geolocation context.
akira/laravel-auth-logs is a Laravel package for track, query, and act on authentication activity in your laravel application. automatically records successful and failed sign-ins, with optional notifications and geolocation context..
It currently has 6 GitHub stars and 3.543 downloads on Packagist (latest version v1.2.0).
Install it with composer require akira/laravel-auth-logs.
Discover more Laravel packages by akira
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Authentication Logs records authentication activity for Laravel applications. It listens to Laravel authentication events, stores request context in a polymorphic log table, and sends mail notifications for security-relevant events.
The package also subscribes to Laravel's OtherDeviceLogout event as a customization hook. The default listener does not write a log entry.
The test workflow validates both Laravel 12 and Laravel 13 dependency sets.
Install the package with Composer:
composer require akira/laravel-auth-logs
Publish the configuration and migration:
php artisan auth-logs:install
php artisan migrate
Add the AuthLogs trait to your authenticatable model:
use Akira\LaravelAuthLogs\Concerns\AuthLogs;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable, AuthLogs;
}
Full documentation is available under docs/:
composer test
The full gate runs Pint, Rector dry-run, PHPStan, Pest type coverage, and Pest coverage.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.