RelationManager
class RelationManager extends Component implements HasRelationshipTable, HasTable (View source)
Traits
Properties
$tableRecordsPerPage | from CanPaginateRecords | ||
protected int | $defaultTableRecordsPerPageSelectOption | from CanPaginateRecords | |
bool | $isTableReordering | from CanReorderRecords | |
$tableColumnSearchQueries | from CanSearchRecords | ||
$tableSearchQuery | from CanSearchRecords | ||
array | $selectedTableRecords | from CanSelectRecords | |
protected bool | $shouldSelectCurrentPageOnly | from CanSelectRecords | |
protected Collection | $cachedSelectedTableRecords | from CanSelectRecords | |
$tableSortColumn | from CanSortRecords | ||
$tableSortDirection | from CanSortRecords | ||
array | $toggledTableColumns | from CanToggleColumns | |
ComponentContainer | $toggleTableColumnForm | from CanToggleColumns | |
bool | $isTableLoaded | from CanDeferLoading | |
$mountedTableAction | from HasActions | ||
$mountedTableActionData | from HasActions | ||
$mountedTableActionRecord | from HasActions | ||
protected array | $cachedTableActions | from HasActions | |
protected array | $cachedTableColumnActions | from HasActions | |
protected Model|null | $cachedMountedTableActionRecord | from HasActions | |
protected | $cachedMountedTableActionRecordKey | from HasActions | |
ComponentContainer | $mountedTableActionForm | from HasActions | |
$mountedTableBulkAction | from HasBulkActions | ||
$mountedTableBulkActionData | from HasBulkActions | ||
protected array | $cachedTableBulkActions | from HasBulkActions | |
ComponentContainer | $mountedTableBulkActionForm | from HasBulkActions | |
protected array | $cachedTableColumns | from HasColumns | |
protected array | $cachedTableColumnsLayout | from HasColumns | |
protected Component|null | $cachedTableCollapsibleColumnsLayout | from HasColumns | |
protected bool | $hasTableColumnsLayout | from HasColumns | |
protected array | $cachedTableEmptyStateActions | from HasEmptyState | |
protected array | $cachedTableFilters | from HasFilters | |
$tableFilters | from HasFilters | ||
ComponentContainer | $tableFiltersForm | from HasFilters | |
protected array | $cachedTableHeaderActions | from HasHeader | |
protected bool | $allowsDuplicates | from HasRecords | |
protected Paginator|null | $records | from HasRecords | |
$mountedFormComponentAction | from HasFormComponentActions | ||
$mountedFormComponentActionArguments | from HasFormComponentActions | ||
$mountedFormComponentActionData | from HasFormComponentActions | ||
$mountedFormComponentActionComponent | from HasFormComponentActions | ||
ComponentContainer | $mountedFormComponentActionForm | from HasFormComponentActions | |
array | $componentFileAttachments | from InteractsWithForms | |
protected array|null | $cachedForms | from InteractsWithForms | |
protected bool | $hasCachedForms | from InteractsWithForms | |
protected bool | $isCachingForms | from InteractsWithForms | |
protected bool | $hasModalViewRendered | from InteractsWithForms | |
protected bool | $hasMounted | from InteractsWithTable | |
protected Table | $table | from InteractsWithTable | |
Model | $ownerRecord | ||
string|null | $pageClass | ||
static protected string|null | $recordTitleAttribute | ||
static protected string | $relationship | ||
static protected string|null | $inverseRelationship | ||
static protected string | $view | ||
static protected string|null deprecated | $label | ||
static protected string|null deprecated | $pluralLabel | ||
static protected string|null | $modelLabel | ||
static protected string|null | $pluralModelLabel | ||
static protected string|null | $title | ||
static protected bool | $shouldAuthorizeWithGate | ||
static protected bool | $shouldIgnorePolicies |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
void
notify(string $status, string $message, bool $isAfterRedirect = false)
No description
protected bool
isTableStriped()
No description
void
updatedTableRecordsPerPage()
No description
protected Paginator
paginateTableQuery(Builder $query)
No description
protected int
getTableRecordsPerPage()
No description
protected array
getTableRecordsPerPageSelectOptions()
No description
protected int
getDefaultTableRecordsPerPageSelectOption()
No description
protected bool
isTablePaginationEnabled()
No description
protected string
getTablePaginationPageName()
No description
string
getTablePerPageSessionKey()
No description
void
resetPage(string|null $pageName = null)
No description
protected string|null
getTablePollingInterval()
No description
void
reorderTable(array $order)
No description
void
toggleTableReordering()
No description
bool
isTableReordering()
No description
protected bool
isTablePaginationEnabledWhileReordering()
No description
protected bool
isTableReorderable()
No description
protected string|null
getTableReorderColumn()
No description
bool
isTableSearchable()
No description
bool
isTableSearchableByColumn()
No description
void
updatedTableSearchQuery()
No description
void
updatedTableColumnSearchQueries($value = null, $key = null)
No description
protected Builder
applySearchToTableQuery(Builder $query)
No description
protected Builder
applyColumnSearchToTableQuery(Builder $query)
No description
protected Builder
applyGlobalSearchToTableQuery(Builder $query)
No description
protected string
getTableSearchQuery()
No description
protected array
castTableColumnSearchQueries(array $searchQueries)
No description
protected array
getTableColumnSearchQueries()
No description
bool
hasTableColumnSearches()
No description
string
getTableSearchSessionKey()
No description
protected bool
shouldPersistTableSearchInSession()
No description
string
getTableColumnSearchSessionKey()
No description
protected bool
shouldPersistTableColumnSearchInSession()
No description
void
deselectAllTableRecords()
No description
bool
shouldDeselectAllRecordsWhenTableFiltered()
No description
array
getAllSelectableTableRecordKeys()
No description
int
getAllSelectableTableRecordsCount()
No description
int
getAllTableRecordsCount()
No description
Collection
getSelectedTableRecords()
No description
bool
isTableSelectionEnabled()
No description
string
getTableRecordCheckboxPosition()
No description
bool
shouldSelectCurrentPageOnly()
No description
void
sortTable(string|null $column = null, string|null $direction = null)
No description
string|null
getTableSortColumn()
No description
string|null
getTableSortDirection()
No description
protected string|null
getDefaultTableSortColumn()
No description
protected string|null
getDefaultTableSortDirection()
No description
void
updatedTableSort()
No description
protected Builder
applySortingToTableQuery(Builder $query)
No description
protected Builder
applyDefaultSortingToTableQuery(Builder $query, string $sortColumn, string $sortDirection)
No description
string
getTableSortSessionKey()
No description
protected bool
shouldPersistTableSortInSession()
No description
protected array
getDefaultTableColumnToggleState()
No description
void
updatedToggledTableColumns()
No description
bool
hasToggleableTableColumns()
No description
ComponentContainer
getTableColumnToggleForm()
No description
protected array
getTableColumnToggleFormSchema()
No description
protected int|array
getTableColumnToggleFormColumns()
No description
protected string|null
getTableColumnToggleFormMaxHeight()
No description
protected string|null
getTableColumnToggleFormWidth()
No description
bool
isTableColumnToggledHidden(string $name)
No description
string
getTableColumnToggleFormStateSessionKey()
No description
bool
isTableLoadingDeferred()
No description
void
loadTable()
No description
bool
isTableLoaded()
No description
void
cacheTableActions()
No description
void
cacheTableColumnActions()
No description
protected void
configureTableAction(Action $action)
No description
callMountedTableAction(string|null $arguments = null)
No description
void
mountedTableActionRecord($record)
No description
mountTableAction(string $name, string|null $record = null)
No description
array
getCachedTableActions()
No description
array
getCachedTableColumnActions()
No description
Action|null
getMountedTableAction()
No description
ComponentContainer|null
getMountedTableActionForm()
No description
getMountedTableActionRecordKey()
No description
Model|null
getMountedTableActionRecord()
No description
Action|null
getCachedTableAction(string $name)
No description
protected Action|null
findTableAction(string $name)
No description
protected array
getTableActions()
No description
protected string|null
getTableActionsPosition()
No description
protected string|null
getTableActionsColumnLabel()
No description
void
cacheTableBulkActions()
No description
protected void
configureTableBulkAction(BulkAction $action)
No description
callMountedTableBulkAction(string|null $arguments = null)
No description
mountTableBulkAction(string $name, array $selectedRecords)
No description
array
getCachedTableBulkActions()
No description
BulkAction|null
getMountedTableBulkAction()
No description
ComponentContainer|null
getMountedTableBulkActionForm()
No description
BulkAction|null
getCachedTableBulkAction(string $name)
No description
protected array
getTableBulkActions()
No description
Closure|null
isTableRecordSelectable()
No description
void
cacheTableColumns()
No description
callTableColumnAction(string $name, string $recordKey)
No description
array
getCachedTableColumns()
No description
array
getCachedTableColumnsLayout()
No description
Component|null
getCachedCollapsibleTableColumnsLayout()
No description
bool
hasTableColumnsLayout()
No description
Column|null
getCachedTableColumn(string $name)
No description
mixed
updateTableColumnState(string $column, string $record, $input)
No description
protected array
getTableColumns()
No description
protected View|null
getTableContent()
No description
protected array|null
getTableContentGrid()
No description
protected View|null
getTableContentFooter()
No description
void
cacheTableEmptyStateActions()
No description
array
getCachedTableEmptyStateActions()
No description
Action|null
getCachedTableEmptyStateAction(string $name)
No description
protected View|null
getTableEmptyState()
No description
protected array
getTableEmptyStateActions()
No description
protected string|null
getTableEmptyStateDescription()
No description
protected string|null
getTableEmptyStateHeading()
No description
protected string|null
getTableEmptyStateIcon()
No description
void
cacheTableFilters()
No description
array
getCachedTableFilters()
No description
BaseFilter|null
getCachedTableFilter(string $name)
No description
ComponentContainer
getTableFiltersForm()
No description
bool
isTableFilterable()
No description
void
updatedTableFilters()
No description
void
removeTableFilter(string $filter, string|null $field = null)
No description
void
removeTableFilters()
No description
void
resetTableFiltersForm()
No description
protected Builder
applyFiltersToTableQuery(Builder $query)
No description
protected array
getTableFilters()
No description
array|null
getTableFilterState(string $name)
No description
string
parseFilterName(string $name)
No description
protected int|array
getTableFiltersFormColumns()
No description
protected string|null
getTableFiltersFormMaxHeight()
No description
protected array
getTableFiltersFormSchema()
No description
protected string|null
getTableFiltersFormWidth()
No description
protected string|null
getTableFiltersLayout()
No description
string
getTableFiltersSessionKey()
No description
protected bool
shouldPersistTableFiltersInSession()
No description
void
cacheTableHeaderActions()
No description
array
getCachedTableHeaderActions()
No description
Action|null
getCachedTableHeaderAction(string $name)
No description
protected Htmlable|null
getTableDescription()
No description
protected Htmlable|null
getTableHeader()
No description
protected array
getTableHeaderActions()
No description
protected Htmlable|Closure|null
getTableHeading()
No description
bool
allowsDuplicates()
No description
protected Builder
getFilteredTableQuery()
No description
protected Paginator
hydratePivotRelationForTableRecords(Paginator $records)
No description
Paginator
getTableRecords()
No description
protected Model|null
resolveTableRecord(string|null $key)
No description
string
getTableModel()
No description
Model|null
getTableRecord(string|null $key)
No description
string
getTableRecordKey(Model $record)
No description
string
getTableRecordTitle(Model $record)
No description
string
getTableModelLabel()
No description
string
getTablePluralModelLabel()
No description
protected Closure|null
getTableRecordActionUsing()
No description
protected string|null
getTableRecordAction()
deprecated
deprecated
No description
protected Closure|null
getTableRecordClassesUsing()
No description
protected Closure|null
getTableRecordUrlUsing()
No description
protected bool
hasMountedFormComponentAction()
No description
protected ComponentContainer|null
getMountedFormComponentActionForm()
No description
callMountedFormComponentAction(string|null $arguments = null)
No description
Action|Closure|null
getMountedFormComponentAction()
No description
mountFormComponentAction(string $component, string $name, array $arguments = [])
No description
Component|null
getMountedFormComponentActionComponent()
No description
protected array
getFormComponentActions()
No description
__get($property)
No description
protected View|null
getModalViewOnce()
No description
void
dispatchFormEvent(...$args)
No description
TemporaryUploadedFile|null
getComponentFileAttachment(string $statePath)
No description
string|null
getComponentFileAttachmentUrl(string $statePath)
No description
array
getSelectOptionLabels(string $statePath)
No description
string|null
getSelectOptionLabel(string $statePath)
No description
array
getSelectOptions(string $statePath)
No description
array
getSelectSearchResults(string $statePath, string $search)
No description
void
deleteUploadedFile(string $statePath, string $fileKey)
No description
array|null
getUploadedFileUrls(string $statePath)
No description
void
removeUploadedFile(string $statePath, string $fileKey)
No description
void
reorderUploadedFiles(string $statePath, array $fileKeys)
No description
validate($rules = null, $messages = [], $attributes = [])
No description
protected void
onValidationError(ValidationException $exception)
No description
validateOnly($field, $rules = null, $messages = [], $attributes = [])
No description
string|null
getActiveFormLocale()
No description
protected void
callBeforeAndAfterSyncHooks($name, $value, $callback)
No description
protected ComponentContainer|null
cacheForm(string $name, ComponentContainer|Closure|null $form)
No description
protected array
cacheForms()
No description
protected array
getUncachedForms()
No description
protected array
getTraitForms()
No description
protected bool
hasCachedForm($name)
No description
protected ComponentContainer|null
getCachedForm($name)
No description
protected array
getCachedForms()
No description
protected Model|string|null
getFormModel()
No description
protected array
getFormSchema()
No description
protected array
getForms()
No description
protected string|null
getFormContext()
No description
protected string|null
getFormStatePath()
No description
protected array
getRules()
No description
protected array
getValidationAttributes()
No description
protected ComponentContainer
makeForm()
No description
void
bootedInteractsWithTable()
No description
void
mountInteractsWithTable()
No description
protected Table
getCachedTable()
No description
protected Table
getTable()
No description
protected string|null
getTableQueryStringIdentifier()
No description
protected string
getIdentifiedTableQueryStringPropertyNameFor(string $property)
No description
protected array
getInteractsWithTableForms()
No description
string|null
getActiveTableLocale()
No description
protected array
getTableForms()
No description
protected Relation
getTableQuery()
No description
protected Relation
selectPivotDataInQuery(Relation $query)
No description
protected Form
getResourceForm(int|null $columns = null, bool $isDisabled = false)
No description
protected Form
getBaseResourceForm(int|null $columns = null, bool $isDisabled = false)
No description
protected void
configureAssociateAction(AssociateAction $action)
No description
protected void
configureAttachAction(AttachAction $action)
No description
protected array
getCreateFormSchema()
No description
protected void
configureCreateAction(CreateAction $action)
No description
protected void
configureDeleteAction(DeleteAction $action)
No description
protected void
configureDetachAction(DetachAction $action)
No description
protected void
configureDissociateAction(DissociateAction $action)
No description
protected array
getEditFormSchema()
No description
protected void
configureEditAction(EditAction $action)
No description
protected void
configureForceDeleteAction(ForceDeleteAction $action)
No description
protected void
configureReplicateAction(ReplicateAction $action)
No description
protected void
configureRestoreAction(RestoreAction $action)
No description
protected array
getViewFormSchema()
No description
protected void
configureViewAction(ViewAction $action)
No description
protected void
configureDeleteBulkAction(DeleteBulkAction $action)
No description
protected void
configureDetachBulkAction(DetachBulkAction $action)
No description
protected void
configureDissociateBulkAction(DissociateBulkAction $action)
No description
protected void
configureForceDeleteBulkAction(ForceDeleteBulkAction $action)
No description
protected void
configureRestoreBulkAction(RestoreBulkAction $action)
No description
protected void
callHook(string $hook)
No description
protected bool
can(string $action, Model|null $record = null)
No description
static void
authorizeWithGate(bool $condition = true)
No description
static void
ignorePolicies(bool $condition = true)
No description
static bool
shouldAuthorizeWithGate()
No description
static bool
shouldIgnorePolicies()
No description
static bool
canViewForRecord(Model $ownerRecord)
No description
string
getInverseRelationshipName()
No description
Model
getOwnerRecord()
No description
static string
getRelationshipName()
No description
static string
getTitle()
No description
static string
getTitleForRecord(Model $ownerRecord)
No description
static string|null
getRecordTitleAttribute()
No description
static string|null
getRecordTitle(Model|null $record)
No description
static protected string|null
getRecordLabel()
deprecated
deprecated
No description
static protected string
getModelLabel()
No description
static protected string|null
getPluralRecordLabel()
deprecated
deprecated
No description
static protected string
getPluralModelLabel()
No description
protected string
getRelatedModel()
No description
Builder
getRelationship()
No description
protected Builder
getInverseRelationshipFor(Model $record)
No description
protected Table
getResourceTable()
No description
View
render()
No description
protected bool
canAssociate()
No description
protected bool
canAttach()
No description
protected bool
canCreate()
No description
protected bool
canDelete(Model $record)
No description
protected bool
canDeleteAny()
No description
protected bool
canDetach(Model $record)
No description
protected bool
canDetachAny()
No description
protected bool
canDissociate(Model $record)
No description
protected bool
canDissociateAny()
No description
protected bool
canEdit(Model $record)
No description
protected bool
canForceDelete(Model $record)
No description
protected bool
canForceDeleteAny()
No description
protected bool
canReorder()
No description
protected bool
canReplicate(Model $record)
No description
protected bool
canRestore(Model $record)
No description
protected bool
canRestoreAny()
No description
protected bool
canView(Model $record)
No description
protected array
getViewData()
No description