sardorbek1605/model-log 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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