Download the PHP package scolib/laravel-action-log without Composer
On this page you can find all versions of the php package scolib/laravel-action-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scolib/laravel-action-log
More information about scolib/laravel-action-log
Files in scolib/laravel-action-log
Package laravel-action-log
Short Description A laravel package for logging user actions into the database
License MIT
Homepage https://github.com/ScoLib/laravel-action-log
Informations about the package laravel-action-log
Laravel Action Log
Install
Laravel 5.5.*
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
Laravel 5.4.*
Add the ServiceProvider to the providers
array in config/app.php
If you want to use the facade to logging actions, add this to the aliases
array in config/app.php
Publish config file
Copy the package config to your local config with the publish command:
Default action log table name is action_logs
, If you want to customize it, edit the config/actionlog.php
Now run the artisan migrate command:
Usage
Method 1
Override the property $events
in your Model
⚠ Note: Laravel 5.5
Renamed$events
to$dispatchesEvents
(#17961, b6472bf, 3dbe12f)
All available event
Method 2
Manual logging actions
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- klgd
- All Contributors
License
The MIT License (MIT). Please see License File for more information.