HandleRevisions
trait HandleRevisions (View source)
Properties
protected string | $revisionLimitJobQueue | The Laravel queue name to be used for the revision limiting. |
Methods
array
array
preview(int $id, array $fields)
No description
previewForRevision(int $id, int $revisionId)
No description
void
hydrateMultiSelect(TwillModelContract $object, array $fields, string $relationship, TwillModelContract $model = null, string|null $customHydratedRelationship = null)
No description
void
hydrateBrowser(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)
No description
void
hydrateOrderedBelongsToMany(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)
No description
void
void
hydrateRepeater(TwillModelContract $object, array $fields, string $relationship, string $model, string|null $repeaterName = null)
No description
int
getCountForMine()
No description
int|bool
getCountByStatusSlugHandleRevisions(string $slug)
No description
Details
TwillModelContract
hydrateHandleRevisions(TwillModelContract $object, array $fields)
No description
array
afterSaveOriginalDataHandleRevisions(TwillModelContract $object, array $fields)
No description
array
createRevisionIfNeeded(TwillModelContract $object, array $fields)
No description
TwillModelContract
preview(int $id, array $fields)
No description
protected TwillModelContract
hydrateObject(TwillModelContract $object, array $fields)
No description
TwillModelContract
previewForRevision(int $id, int $revisionId)
No description
void
hydrateMultiSelect(TwillModelContract $object, array $fields, string $relationship, TwillModelContract $model = null, string|null $customHydratedRelationship = null)
No description
void
hydrateBrowser(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)
No description
void
hydrateOrderedBelongsToMany(TwillModelContract $object, array $fields, string $relationship, string $positionAttribute = 'position', TwillModelContract|string $model = null)
No description
void
hydrateRelatedBrowsers(TwillModelContract $object, array $fields)
No description
void
hydrateRepeater(TwillModelContract $object, array $fields, string $relationship, string $model, string|null $repeaterName = null)
No description
int
getCountForMine()
No description
int|bool
getCountByStatusSlugHandleRevisions(string $slug)
No description