Download the PHP package jlxh/laravel-userlog without Composer
On this page you can find all versions of the php package jlxh/laravel-userlog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jlxh/laravel-userlog
More information about jlxh/laravel-userlog
Files in jlxh/laravel-userlog
Package laravel-userlog
Short Description User log for laravel
License MIT
Homepage https://github.com/jlxh/laravel-userlog
Informations about the package 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
in the providers
array and
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:
It will generate the <timestamp>_userlog_setup_tables.php
migration.
You may now run it with the artisan migrate command:
After the migration, one new table will be present:
user-log
— stores user logs
Usage
Concepts
Let's create log as following:
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.