waynebrummer/access-telemetry

Logs access and user authentication actions also provides a API resource to preform reports using Spatie :).

1.0.3 2019-12-31 08:49 UTC

This package is auto-updated.

Last update: 2024-04-21 15:52:53 UTC


README

.env settings Days 180

PRUNE_ACCESS_LOGS_SECONDS=15552000 

Via Composer:

composer require waynebrummer/mail-telemetry

Publish the config file and migration files:

php artisan vendor:publish --provider="Pace\AccessTelemetry\ServiceProvider"

Run the migration:

php artisan migrate

Where to start:

Begin by extending adding the event to your login method in your controller. Thats about it for hooking it up.

...
use Pace\AccessTelemetry\Events\RequestLoginEvent as LoginEvent;
...
event(new LoginEvent($credentials, request()->server()));
...