filamentphp/filament · error · LogicException
Table [{$livewireClass}] must have a [query()], [relationshi
Error message
Table [{$livewireClass}] must have a [query()], [relationship()], or [records()]. What it means
Error "Table [{$livewireClass}] must have a [query()], [relationship()], or [records()]." thrown in filamentphp/filament.
Source
Thrown at packages/tables/src/Concerns/HasRecords.php:168
$setRecordLocales = function (EloquentCollection | Paginator | CursorPaginator $records) use ($translatableContentDriver): EloquentCollection | Paginator | CursorPaginator {
$records->transform(fn (Model $record) => $translatableContentDriver->setRecordLocale($record));
return $records;
};
} else {
$setRecordLocales = fn (EloquentCollection | Paginator | CursorPaginator $records): EloquentCollection | Paginator | CursorPaginator => $records;
}
if ($this->cachedTableRecords) {
return $setRecordLocales($this->cachedTableRecords);
}
$query = $this->getFilteredSortedTableQuery();
if (! $query) {
$livewireClass = $this::class;
throw new LogicException("Table [{$livewireClass}] must have a [query()], [relationship()], or [records()].");
}
if (
(! $this->getTable()->isPaginated()) ||
($this->isTableReordering() && (! $this->getTable()->isPaginatedWhileReordering()))
) {
return $setRecordLocales($this->cachedTableRecords = $this->hydratePivotRelationForTableRecords($query->get()));
}
return $setRecordLocales($this->cachedTableRecords = $this->hydratePivotRelationForTableRecords($this->paginateTableQuery($query)));
}
/**
* @return Model | array<string, mixed> | null
*/
protected function resolveTableRecord(?string $key): Model | array | null
{
if ($key === null) {View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/tables/src/Concerns/HasRecords.php:168 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17).
Data as JSON: /api/errors/c364780a5503e5b7.
Report an issue: GitHub.