HasRevisions
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.
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
protected string
getRevisionModel()
No description