Looking to hire Laravel developers? Try LaraJobs

laravel-auth-logs maintained by akira

Description
Track, query, and act on authentication activity in your Laravel application. Automatically records successful and failed sign-ins, with optional notifications and geolocation context.
Author
Last update
2026/05/24 02:15 (dev-thread/80265FF1-4F88-4EF6-8C83-9F784CF47524)
License
Downloads
2 729

Comments
comments powered by Disqus

Latest Version on Packagist Total Downloads PHPStan Level License img.png

  • Login
  • Logout
  • Failed login

Features

  • Logs all authentication events
  • Notification on failed login
  • Notification on new device login

Requirements

  • PHP 8.4 or higher
  • Laravel 12.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

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.

Documentation

Full documentation is available in this repository under docs/:

  • Quick start: docs/README.md
  • Installation: docs/installation.md
  • Usage: docs/usage.md

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.