Package Data | |
---|---|
Maintainer Username: | carlosrgzm |
Maintainer Contact: | carloscsrm@gmail.com (Carlos Rodríguez) |
Package Create Date: | 2016-03-13 |
Package Last Update: | 2016-10-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:06:45 |
Package Statistics | |
---|---|
Total Downloads: | 103 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Register all user's information in your Laravel 5 application.
carlosrgzm/activity-log
to composer.json
."carlosrgzm/activity-log": "1.0.*"
Run composer update to pull down the latest version.
Now open up app/config/app.php and add the service provider to your providers array.
'providers' => array( Carlosrgzm\ActivityLog\ActivityLogServiceProvider::class, ),
'aliases' => array( 'ActivityLog' => Carlosrgzm\ActivityLog\Models\ActivityLog::class,, ),
Run php artisan vendor:publish
to generate the migrations and the configuration file in your config folder.
For using this package you can add this code in your templates
$act = new ActivityLog;
$data = new ActivityLogData($action, $contentType, $contentId, $details, $userId);
$act->log($data);
All params for ActivityLogData() are optional. The 'user_id' is automatically set to the current user if you have 'auto_set_user_id' => true in your activitylog.php config file.
You should review the config/activitylog.php to be sure all params are correct.