filamentphp/filament · error · LogicException
The relationship [{$relationshipName}] does not exist on the
Error message
The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}]. What it means
Error "The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}]." thrown in filamentphp/filament.
Source
Thrown at packages/forms/src/Components/Repeater.php:1183
}
public function getOrderColumn(): ?string
{
return $this->evaluate($this->orderColumn);
}
public function getRelationship(): HasOneOrMany | BelongsToMany | null
{
if (! $this->hasRelationship()) {
return null;
}
$record = $this->getModelInstance();
$relationshipName = $this->getRelationshipName();
if ($record->hasAttribute($relationshipName) || (! $record->isRelation($relationshipName))) {
throw new LogicException("The relationship [{$relationshipName}] does not exist on the model [{$this->getModel()}].");
}
return $this->getModelInstance()->{$relationshipName}();
}
public function getRelationshipName(): ?string
{
return $this->evaluate($this->relationship);
}
protected function modifyRelationshipRecords(Collection $records): Collection
{
return $this->evaluate(
$this->modifyRelationshipRecordsUsing,
namedInjections: [
'records' => $records,
],
typedInjections: [View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/forms/src/Components/Repeater.php:1183 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/dd1138572cb62da4.
Report an issue: GitHub.