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
Requires
- php: ^7.2
- genealabs/laravel-model-caching: ^0.7
- spatie/laravel-json-api-paginate: ^1.6
- spatie/laravel-query-builder: ^2.1
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~4.0
- phpunit/phpunit: ~8.0
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())); ...