October\Rain\Database\Traits\Revisionable

Overview

Revisionable trait tracks changes to specific attributes


Public Properties

public bool $revisionsEnabled

revisionsEnabled flag for arbitrarily disabling revision history.


Public Methods

public getRevisionHistoryName()

public getRevisionHistoryName(): string 

public initializeRevisionable()

public initializeRevisionable(): void

initializeRevisionable trait for a model.

public revisionableAfterDelete()

public revisionableAfterDelete(): void

revisionableAfterDelete event

public revisionableAfterUpdate()

public revisionableAfterUpdate(): void

revisionableAfterUpdate event

Protected Methods

protected revisionableCleanUp()

protected revisionableCleanUp(): void

protected revisionableGetCastType()

protected revisionableGetCastType($attribute): void

protected revisionableGetUser()

protected revisionableGetUser(): void