我使用了这个名为revisionable的包,所以我尝试将它添加到我的package.json
并运行迁移,一切正常。
但是当我尝试创建记录然后更新它们时,它不会填写修订表吗?
我正在使用"venturecraft/revisionable": "^1.28",
和Laravel 5.5
这是我模型中的代码
所以这就是我在我的模型中所做的
use Venturecraft\Revisionable\Revisionable;
use Venturecraft\Revisionable\RevisionableTrait;
class AnalysisRequest extends Revisionable
{
use SoftDeletes;
use RevisionableTrait;
protected $revisionEnabled = true;
protected $revisionCleanup = true;
protected $historyLimit = 100; //Stop tracking revisions after 500 changes have been made.
protected $dontKeepRevisionOf = array(
'client_id', 'service_id', 'categories_id', 'methodologies_id', 'current_version', 'due_date'
);
protected $keepRevisionOf = array(
'sample_description',
'special_instruction',
'status',
'rushable'
);
我什么时候做错了?
有人可以为我解释一下。提前致谢。