Revisionable

 trait Winter\Storm\Database\Traits\Revisionable

Properties

public $revisionsEnabled : bool

Flag for arbitrarily disabling revision history.

Methods

public static bootRevisionable () : void

Boot the revisionable trait for a model.

Returns
void

public getRevisionHistoryName () : string

Get revision history relation name name.

Returns
string

public revisionableAfterDelete ()

Returns
mixed

public revisionableAfterUpdate ()

Returns
mixed

protected revisionableCleanUp ()

Returns
mixed

protected revisionableGetCastType ($attribute)

Parameters
Property Description
$attribute
mixed
Returns
mixed

protected revisionableGetUser ()

Returns
mixed
Copyright © 2024 Winter CMS