akira/laravel-auth-logs

This is my package laravel-auth-logs

1.x-dev 2025-01-30 01:56 UTC

This package is auto-updated.

Last update: 2025-01-30 01:56:32 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.