【文件属性】:
文件名称:HistoryLog:Laravel 5模型历史记录日志包
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-05 22:47:41
PHP
历史记录
这是一个Laravel 5软件包,可以记录模型历史记录。
它正在开发中,不建议用于生产!
安装
将捆绑软件添加到作曲家中:
"andrewboy/historylog": "dev-master"
运行作曲家:
composer install / update
将服务提供者添加到提供者列表中:
'Andrewboy\HistoryLog\HistoryLogServiceProvider'
发布配置和迁移:
php artisan vendor:publish --provider= " Andrewboy\HistoryLog\HistoryLogServiceProvider "
运行迁移:
php artisan migrate
用法
您必须创建一个使用“ HistoryLog”特征的特性,并实现“ getUserId”抽象方法。
use Andrewb
【文件预览】:
HistoryLog-master
----composer.json(508B)
----database()
--------migrations()
----src()
--------Andrewboy()
----.gitignore(10B)
----README.md(1KB)