定制 sardorbek1605/model-log 二次开发

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

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

sardorbek1605/model-log

Composer 安装命令:

composer require sardorbek1605/model-log

包简介

Create history log for laravel model

README 文档

README

Create history log for laravel model. This package can be used for creating log form model.

Installation

You should add repository to your composer.json file

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Sardorbek1605/model-log"
    }
]

You can install the package via composer:

composer require Sardorbek1605/model-log

Configuration

  1. You should publish migration files
php artisan vendor:publish --provider="Sardorbek\ModelLog\ModelLogServiceProvider"
  1. Run migration
php artisan migrate

Usage

You should add UpdateLoggable trait for necessary model

namespace App\Services\ModelLog;

use Sardorbek\ModelLog\Services\ModelLogService;
use Sardorbek\ModelLog\Traits\UpdateLoggable;

class User extends Modal
{
    use UpdateLoggable;
}

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-26