InteractsWithRelationshipTable
trait InteractsWithRelationshipTable (View source)
Traits
Properties
string|null | $activeTab | from HasTabs | |
protected array | $cachedTabs | from HasTabs | |
bool | $isTableLoaded | from CanDeferLoading | |
string|null | $tableGrouping | from CanGroupRecords | |
string|null | $tableGroupingDirection | from CanGroupRecords | |
int | $tableRecordsPerPage | from CanPaginateRecords | |
protected int|string|null | $defaultTableRecordsPerPageSelectOption | from CanPaginateRecords | |
bool | $isTableReordering | from CanReorderRecords | |
array | $tableColumnSearches | from CanSearchRecords | |
?string | $tableSearch | from CanSearchRecords | |
string|null | $tableSortColumn | from CanSortRecords | |
string|null | $tableSortDirection | from CanSortRecords | |
array | $toggledTableColumns | from CanToggleColumns | |
Form | $toggleTableColumnForm | from CanToggleColumns | |
string[] | $mountedTableActions | from HasActions | |
array<string,array<string,mixed>> | $mountedTableActionsData | from HasActions | |
array<string,array<string,mixed>> | $mountedTableActionsArguments | from HasActions | |
int | $mountedTableActionRecord | from HasActions | |
protected Model|null | $cachedMountedTableActionRecord | from HasActions | |
protected int|string|null | $cachedMountedTableActionRecordKey | from HasActions | |
mixed | $defaultTableAction | from HasActions | |
mixed | $defaultTableActionArguments | from HasActions | |
mixed | $defaultTableActionRecord | from HasActions | |
Form | $mountedTableActionForm | from HasActions | |
array | $selectedTableRecords | from HasBulkActions | |
string|null | $mountedTableBulkAction | from HasBulkActions | |
array<string,mixed> | $mountedTableBulkActionData | from HasBulkActions | |
protected Collection | $cachedSelectedTableRecords | from HasBulkActions | |
Form | $mountedTableBulkActionForm | from HasBulkActions | |
array<string,mixed> | $tableFilters | from HasFilters | |
array<string,mixed> | $tableDeferredFilters | from HasFilters | |
Form | $tableFiltersForm | from HasFilters | |
protected bool deprecated | $allowsDuplicates | from HasRecords | |
protected CursorPaginator|null | $cachedTableRecords | from HasRecords | |
protected Table | $table | from InteractsWithTable | |
protected bool | $hasTableModalRendered | from InteractsWithTable | |
protected bool | $shouldMountInteractsWithTable | from InteractsWithTable | |
static protected string | $relationship | ||
static protected bool | $shouldCheckPolicyExistence | ||
static protected bool | $shouldSkipAuthorization |
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
Details
protected void
loadDefaultActiveTab()
No description
array
getTabs()
No description
array
getCachedTabs()
No description
string|int|null
getDefaultActiveTab()
No description
void
updatedActiveTab()
No description
string
generateTabLabel(string $key)
No description
protected Builder
modifyQueryWithActiveTab(Builder $query)
No description
protected bool
isTableStriped()
deprecated
deprecated
No description
bool
isTableLoadingDeferred()
deprecated
deprecated
No description
void
loadTable()
No description
bool
isTableLoaded()
No description
Group|null
getTableGrouping()
No description
void
updatedTableGroupColumn()
No description
string|null
getTableGroupingDirection()
No description
protected Builder
applyGroupingToTableQuery(Builder $query)
No description
void
updatedTableRecordsPerPage()
No description
protected CursorPaginator
paginateTableQuery(Builder $query)
No description
int|string|null
getTableRecordsPerPage()
No description
int
getTablePage()
No description
int|string
getDefaultTableRecordsPerPageSelectOption()
No description
string
getTablePaginationPageName()
No description
string
getTablePerPageSessionKey()
No description
protected array|null
getTableRecordsPerPageSelectOptions()
deprecated
deprecated
No description
protected bool
isTablePaginationEnabled()
deprecated
deprecated
No description
protected string|null
getTablePollingInterval()
deprecated
deprecated
No description
void
reorderTable(array $order)
No description
void
toggleTableReordering()
No description
bool
isTableReordering()
No description
protected bool
isTablePaginationEnabledWhileReordering()
deprecated
deprecated
No description
protected string|null
getTableReorderColumn()
deprecated
deprecated
No description
void
updatedTableSearch()
No description
void
updatedTableColumnSearches($value = null, string|null $key = null)
No description
protected Builder
applySearchToTableQuery(Builder $query)
No description
protected Builder
applyColumnSearchesToTableQuery(Builder $query)
No description
protected array
extractTableSearchWords(string $search)
No description
protected Builder
applyGlobalSearchToTableQuery(Builder $query)
No description
string|null
getTableSearch()
No description
bool
hasTableSearch()
No description
void
resetTableSearch()
No description
void
resetTableColumnSearch(string $column)
No description
void
resetTableColumnSearches()
No description
Indicator
getTableSearchIndicator()
No description
array
getTableColumnSearchIndicators()
No description
protected array
castTableColumnSearches(array $searches)
No description
array
getTableColumnSearches()
No description
string
getTableSearchSessionKey()
No description
string
getTableColumnSearchesSessionKey()
No description
protected bool
shouldPersistTableSearchInSession()
deprecated
deprecated
No description
protected bool
shouldPersistTableColumnSearchInSession()
deprecated
deprecated
No description
void
sortTable(string|null $column = null, string|null $direction = null)
No description
string|null
getTableSortColumn()
No description
string|null
getTableSortDirection()
No description
void
updatedTableSortColumn()
No description
void
updatedTableSortDirection()
No description
protected Builder
applySortingToTableQuery(Builder $query)
No description
protected Builder
applyDefaultSortingToTableQuery(Builder $query)
No description
protected string|null
getDefaultTableSortColumn()
deprecated
deprecated
No description
protected string|null
getDefaultTableSortDirection()
deprecated
deprecated
No description
string
getTableSortSessionKey()
No description
protected bool
shouldPersistTableSortInSession()
deprecated
deprecated
No description
Builder
getAllTableSummaryQuery()
No description
Builder
getPageTableSummaryQuery()
No description
array
getTableSummarySelectedState(Builder $query, Closure|null $modifyQueryUsing = null)
No description
protected array
getDefaultTableColumnToggleState()
No description
void
updatedToggledTableColumns()
No description
Form
getTableColumnToggleForm()
No description
protected array
getTableColumnToggleFormSchema()
No description
bool
isTableColumnToggledHidden(string $name)
No description
string
getTableColumnToggleFormStateSessionKey()
No description
protected int|array
getTableColumnToggleFormColumns()
deprecated
deprecated
No description
protected string|null
getTableColumnToggleFormWidth()
deprecated
deprecated
No description
protected string|null
getTableColumnToggleFormMaxHeight()
deprecated
deprecated
No description
protected void
configureTableAction(Action $action)
No description
mixed
callMountedTableAction(array $arguments = [])
No description
void
mountedTableActionRecord(int|string|null $record)
No description
mixed
mountTableAction(string $name, string|null $record = null, array $arguments = [])
No description
void
replaceMountedTableAction(string $name, string|null $record = null, array $arguments = [])
No description
bool
mountedTableActionShouldOpenModal(Action|null $mountedAction = null)
No description
bool
mountedTableActionHasForm(Action|null $mountedAction = null)
No description
Action|null
getMountedTableAction()
No description
Form|null
getMountedTableActionForm(Action|null $mountedAction = null)
No description
int|string|null
getMountedTableActionRecordKey()
No description
Model|null
getMountedTableActionRecord()
No description
protected string|null
popMountedTableAction()
No description
protected void
resetMountedTableActionProperties()
No description
void
unmountTableAction(bool $shouldCancelParentActions = true, bool $shouldCloseModal = true)
No description
protected void
cacheMountedTableActionForm(Action|null $mountedAction = null)
No description
protected void
closeTableActionModal()
No description
protected void
openTableActionModal()
No description
protected array
getTableActions()
deprecated
deprecated
No description
protected string|null
getTableActionsColumnLabel()
deprecated
deprecated
No description
Infolist
mountedTableActionInfolist()
No description
protected void
configureTableBulkAction(BulkAction $action)
No description
mixed
callMountedTableBulkAction(array $arguments = [])
No description
mixed
mountTableBulkAction(string $name, array|null $selectedRecords = null)
No description
protected void
cacheMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)
No description
void
replaceMountedTableBulkAction(string $name, array|null $selectedRecords = null)
No description
protected void
resetMountedTableBulkActionProperties()
No description
bool
mountedTableBulkActionShouldOpenModal(BulkAction|null $mountedBulkAction = null)
No description
void
unmountTableBulkAction(bool $shouldCloseModal = true)
No description
bool
mountedTableBulkActionHasForm(BulkAction|null $mountedBulkAction = null)
No description
void
deselectAllTableRecords()
No description
array
getAllSelectableTableRecordKeys()
No description
array
getGroupedSelectableTableRecordKeys(string $group)
No description
int
getAllSelectableTableRecordsCount()
No description
Collection
getSelectedTableRecords(bool $shouldFetchSelectedRecords = true)
No description
protected void
closeTableBulkActionModal()
No description
protected void
openTableBulkActionModal()
No description
bool
shouldSelectCurrentPageOnly()
deprecated
deprecated
No description
bool
shouldDeselectAllRecordsWhenTableFiltered()
deprecated
deprecated
No description
BulkAction|null
getMountedTableBulkAction()
No description
Form|null
getMountedTableBulkActionForm(BulkAction|null $mountedBulkAction = null)
No description
protected array
getTableBulkActions()
deprecated
deprecated
No description
Closure|null
isTableRecordSelectable()
deprecated
deprecated
No description
Infolist
mountedTableBulkActionInfolist()
No description
mixed
callTableColumnAction(string $name, string $recordKey)
No description
mixed
updateTableColumnState(string $column, string $record, mixed $input)
No description
protected array
getTableColumns()
deprecated
deprecated
No description
protected View|null
getTableContent()
deprecated
deprecated
No description
protected array|null
getTableContentGrid()
deprecated
deprecated
No description
protected View|null
getTableContentFooter()
deprecated
deprecated
No description
protected View|null
getTableEmptyState()
deprecated
deprecated
No description
protected array
getTableEmptyStateActions()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateDescription()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateHeading()
deprecated
deprecated
No description
protected string|null
getTableEmptyStateIcon()
deprecated
deprecated
No description
Form
getTableFiltersForm()
No description
void
updatedTableFilters()
No description
protected void
handleTableFilterUpdates()
No description
void
removeTableFilter(string $filterName, string|null $field = null, bool $isRemovingAllFilters = false)
No description
void
removeTableFilters()
No description
void
resetTableFiltersForm()
No description
void
applyTableFilters()
No description
protected Builder
applyFiltersToTableQuery(Builder $query)
No description
array|null
getTableFilterState(string $name)
No description
string
parseTableFilterName(string $name)
No description
string
getTableFiltersSessionKey()
No description
protected array
getTableFilters()
deprecated
deprecated
No description
protected string|null
getTableFiltersFormWidth()
deprecated
deprecated
No description
protected string|null
getTableFiltersFormMaxHeight()
deprecated
deprecated
No description
protected bool
shouldPersistTableFiltersInSession()
deprecated
deprecated
No description
protected Htmlable|null
getTableDescription()
deprecated
deprecated
No description
protected Htmlable|null
getTableHeader()
deprecated
deprecated
No description
protected array
getTableHeaderActions()
deprecated
deprecated
No description
protected Htmlable|null
getTableHeading()
deprecated
deprecated
No description
protected Closure|null
getTableRecordActionUsing()
deprecated
deprecated
No description
protected string|null
getTableRecordAction()
deprecated
deprecated
No description
protected Closure|null
getTableRecordClassesUsing()
deprecated
deprecated
No description
Builder
getFilteredTableQuery()
No description
Builder
filterTableQuery(Builder $query)
No description
Builder
getFilteredSortedTableQuery()
No description
Builder
getTableQueryForExport()
No description
protected CursorPaginator
hydratePivotRelationForTableRecords(CursorPaginator $records)
No description
CursorPaginator
getTableRecords()
No description
protected Model|null
resolveTableRecord(string|null $key)
No description
Model|null
getTableRecord(string|null $key)
No description
string
getTableRecordKey(Model $record)
No description
int
getAllTableRecordsCount()
No description
void
flushCachedTableRecords()
No description
bool
allowsDuplicates()
deprecated
deprecated
No description
string|null
getTableRecordTitle(Model $record)
deprecated
deprecated
No description
string|null
getTableModelLabel()
deprecated
deprecated
No description
string|null
getTablePluralModelLabel()
deprecated
deprecated
No description
protected Closure|null
getTableRecordUrlUsing()
deprecated
deprecated
No description
void
bootedInteractsWithTable()
No description
void
mountInteractsWithTable()
No description
Table
getTable()
No description
protected Table
makeTable()
No description
protected string|null
getTableQueryStringIdentifier()
No description
string
getIdentifiedTableQueryStringPropertyNameFor(string $property)
No description
protected array
getInteractsWithTableForms()
No description
string|null
getActiveTableLocale()
No description
void
resetPage(?string $pageName = null)
No description
protected Relation|null
getTableQuery()
deprecated
deprecated
No description
protected void
normalizeTableFilterValuesFromQueryString(array $data)
No description
void
resetTable()
No description
static void
checkPolicyExistence(bool $condition = true)
No description
static void
skipAuthorization(bool $condition = true)
No description
static bool
shouldCheckPolicyExistence()
No description
static bool
shouldSkipAuthorization()
No description
Builder
getRelationship()
No description
static string
getRelationshipName()
No description