Backend\FormWidgets\Repeater\HasRelationStore
Overview
HasRelationStore contains logic for related repeater items
Protected Methods
protected createRelationAtIndex()
protected createRelationAtIndex(
?string $groupCode = null,
$attributes = null
): void
createRelationAtIndex prepares an empty model and adds it to the index
protected deleteRelationAtIndex()
protected deleteRelationAtIndex(int|string $index): void
protected duplicateRelationAtIndex()
protected duplicateRelationAtIndex(
int|string $fromIndex,
string $groupCode = null
): void
protected getGroupCodeFromRelation()
protected getGroupCodeFromRelation($model): void
protected getLoadValueFromRelation()
protected getLoadValueFromRelation(): void
protected getModelFromIndex()
protected getModelFromIndex(int|string $index): void
getModelFromIndex returns the model at a given index
protected getRelationQuery()
protected getRelationQuery(): void
protected processItemsForRelation()
protected processItemsForRelation(): void
processItemsForRelation processes data and applies it to the form widgets
protected processRelationMode()
protected processRelationMode(): void
protected processSaveForRelation()
protected processSaveForRelation($value): void
protected processSortOrderForSortable()
protected processSortOrderForSortable($model, $sortOrder): void
protected setGroupCodeOnRelation()
protected setGroupCodeOnRelation($model, $groupCode): void