Download the PHP package fikrimastor/audit-login without Composer
On this page you can find all versions of the php package fikrimastor/audit-login. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fikrimastor/audit-login
More information about fikrimastor/audit-login
Files in fikrimastor/audit-login
Package audit-login
Short Description Audit login is a another package for laravel framework. The purpose is to auditing login events
License MIT
Homepage https://github.com/fikrimastor/audit-login
Informations about the package audit-login
Audit Login with Laravel
Audit login is another package for Laravel framework. The purpose is auditing login events
Support us
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
If you want to custom some actions, for example, while user login, you want to send an email notification, you may create new service provider and defined it in config/app.php.
So, under the new service provider, under the boot method, you can do something like this:
And then, you can create a new class for your custom login event action class, for example: `
The event object consists of the user object logged in, and the attribute object is the object that contains the login event attributes.
Some of it use Authenticatable contract, so you can use it to get the user data.
You may learn about Auth events in Laravel here.
Testing
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
- Fikri Mastor
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of audit-login with dependencies
illuminate/auth Version ^10.0|^11.0
illuminate/contracts Version ^10.0|^11.0
illuminate/database Version ^10.0|^11.0
illuminate/support Version ^10.0|^11.0
spatie/laravel-package-tools Version ^1.16