trait HasRevisions (View source)

Methods

HasMany
revisions()

Defines the one-to-many relationship for revisions.

Builder
scopeMine(Builder $query)

Scope a query to only include the current user's revisions.

array
revisionsArray()

Returns an array of revisions for the CMS views.

void
deleteSpecificRevisions(int $maxRevisions)

Deletes revisions from specific collection position Used to keep max revision on specific Twill's module

string
getRevisionModel()

No description

Details

HasMany revisions()

Defines the one-to-many relationship for revisions.

Return Value

HasMany

Builder scopeMine(Builder $query)

Scope a query to only include the current user's revisions.

Parameters

Builder $query

Return Value

Builder

array revisionsArray()

Returns an array of revisions for the CMS views.

Return Value

array

void deleteSpecificRevisions(int $maxRevisions)

Deletes revisions from specific collection position Used to keep max revision on specific Twill's module

Parameters

int $maxRevisions

Return Value

void

protected string getRevisionModel()

No description

Return Value

string