承接 mahmoudarafat/edit-history 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mahmoudarafat/edit-history

最新稳定版本:1.4

Composer 安装命令:

composer require mahmoudarafat/edit-history

包简介

editable and historiable data for crud operations to save request consumptions and bandwidth, also for make history for all changes done in the request.

README 文档

README

editable and historiable data for crud operations to save request consumptions and bandwidth, also for make history for all changes done in the request.

Features

  • Save all Edits done on your DB table with one model configuration
  • this makes a DB table called ( edit_history ) with morphMany for any of your chosen models you need to track its edit history.

Upcomoing Features

  • View history done in all of your Models ( You don't need to code this, I'll do it for you ).

Author

Installation

First, we run

  composer require mahmoudarafat/edit-history

Then, we should add the package to [ config/app.php ]

  'providers' => [
    ....
   
      \MahmoudArafat\EditHistory\EditHistoryServiceProvider::class,
   
    ....
  ],

Now, we can publish the package

  php artisan vendor:publish
[Choose]

MahmoudArafat\EditHistory\EditHistoryServiceProvider

And finally, we do this Artisan command to add the [ edit_history ] table to your DB.

 php artisan edithistory:table

That's it, Enjoy!

Usage/Examples

<?php

namespace App\Models;
// import the package
use MahmoudArafat\EditHistory\Traits\Historyable;

class User extends Model
{
    // use the package in model
    use Historyable;

}

for custom ignored columns to stop track: Add [ ignoreHistoryColumns ] property in model:

<?php

namespace App\Models;
// import the package
use MahmoudArafat\EditHistory\Traits\Historyable;

class User extends Model
{
    // use the package in model
    use Historyable;

   // ignore those here
    public $ignoreHistoryColumns = ['name', 'updated_at'];

}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固