dnj/laravel-user-logger
最新稳定版本:v1.1.2
Composer 安装命令:
composer require dnj/laravel-user-logger
包简介
README 文档
README
The dnj/laravel-user-logger package provides easy way to log the activities of the users of your app.
The Package stores all activity in the logs table.
Here's a demo of how you can use it:
$logger = app(dnj\UserLogger\Contracts\ILogger::class); $log = $logger ->performedOn($anEloquentModel) ->causedBy($user) ->withProperties(['customProperty' => 'customValue']) ->log('edit');
Installation
You can install the package via composer:
composer require dnj/laravel-user-logger
The package will automatically register itself.
After this you can create the logs table by running the migrations:
php artisan migrate
You can optionally publish the config file with:
php artisan vendor:publish --provider="dnj\UserLogger\ServiceProvider" --tag="config"
Security
If you've found a bug regarding security please mail security@dnj.co.ir instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 501
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-14