bmartel / logbook

0.1.0 2015-09-12 05:08 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:16:03 UTC


README

通过便捷的接口和特质,将简单的变更日志添加到eloquent模型中。

用法

在您想要跟踪变更的任何eloquent模型中,实现Bmartel\Logbook\LoggableContract并使用Bmartel\Logbook\Loggable特质。默认情况下,Logbook会监视您的可填充属性,但您可以通过覆盖每个Loggable模型中的$loggable数组来提供自己的属性。

致谢

Brandon Martel - 维护者