akira/laravel-auth-logs

This is my package laravel-auth-logs

1.0.0 2025-05-24 00:10 UTC

This package is auto-updated.

Last update: 2025-05-24 15:16:41 UTC


README

Laravel Authentication Logs

Latest Version on Packagist Total Downloads PHPStan Level License

logo.png

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.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

You'll find installation instructions and full documentation on Auth Logs website.

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.