定制 bushart/activitylog 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bushart/activitylog

最新稳定版本:1.0

Composer 安装命令:

composer require bushart/activitylog

包简介

A simple modified log to database

README 文档

README

This package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events. All activity will be stored in the activity_log table

Installation

To install the package, simply require it using Composer:

composer require bushart/activitylog    

Publish configuration files

php artisan vendor:publish --tag=migrations

After the package is installed, you can run the migration to create the activity_logs table in your database:

php artisan migrate

Usage

Add it to your App/Providers/EventServiceProvider.php file:

use bushart\activitylog\Events\LogActivity;
use bushart\activitylog\Listeners\LogActivityListener;

protected $listen => [
    // ...
      LogActivity::class => [
                  LogActivityListener::class,
      ],
],

For Custom use:

Dispatch the event with the desired data:

event(new LogActivity(['log_name' => 'test', 'description' => 'test description']));

This will activity log to the activity_logs table in your database.

Support

If you encounter any issues with this package, please open an issue on the GitHub repository or contact us at busharthussain@gmail.com.

I hope this example description helps you write your own README file! Let me know if you have any other questions.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-16