jlxh/laravel-userlog
Laravel-UserLog (Laravel 5 Package)
Laravel-UserLog is a succinct and flexible way to add user logs to Laravel 5.
Installation
In order to install Laravel 5 UserLog, just add
"jlxh/laravel-userlog": ">=1.*"
to your composer.json. Then run composer install or composer update.
or you can run the composer require command from your terminal:
composer require jlxh/laravel:1.*
Then in your config/app.php add
Jlxh\UserLog\UserLogServiceProvider::class,
in the providers array and
'UserLog' => Jlxh\UserLog\UserLogFacade::class,
to the aliases array.
Configuration
You can also publish the configuration for this package to further customize table names and model namespaces.
Just use php artisan vendor:publish and a userlog.php file will be created in your app/config directory.
Now generate the UserLog migration:
php artisan userlog:migration
It will generate the <timestamp>_userlog_setup_tables.php migration.
You may now run it with the artisan migrate command:
php artisan migrate
After the migration, one new table will be present:
user-log— stores user logs
Usage
Concepts
Let's create log as following:
use UserLog;
...
$log = UserLog::create(1, 'title', 'A', 'data', 'sql');
Troubleshooting
License
Entrust is free software distributed under the terms of the MIT license.
Contribution guidelines
Support follows PSR-1 and PSR-4 PHP coding standards, and semantic versioning.
Please report any issue you find in the issues page. Pull requests are welcome.
Related Packages
This package allows you to send data for logging to the HTTP daemon associated w...
Laravel plugin for displaying query results as a table with built-in filtering/s...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.1 | >=5.5.9 | 5.1.* | MIT | |
| v1.0 | >=5.5.9 | 5.1.* | MIT | |
| v0.9 | >=5.5.9 | 5.1.* | MIT | |
| v0.8 | >=5.5.9 | 5.1.* | MIT | |
| v0.7 | >=5.5.9 | 5.1.* | MIT | |
| v0.6 | >=5.5.9 | >=5.1 | MIT | |
| v0.5 | >=5.5.9 | >=5.1 | MIT | |
| v0.4 | >=5.5.9 | >=5.1 | MIT | |
| v0.3 | >=5.5.9 | >=5.1 | MIT | |
| v0.2 | >=5.5.9 | MIT | ||
| v0.1 | >=5.5.9 | MIT |