{"record":{"id":"c605548cda1cf881","repo":"filamentphp/filament","slug":"the-relationship-relationshipname-does-not-ex-c60554","errorCode":null,"errorMessage":"The relationship [{$relationshipName}] does not exist on the model [{$model}].","messagePattern":"The relationship \\[(.+?)\\] does not exist on the model \\[(.+?)\\]\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/tables/src/Filters/Concerns/HasRelationship.php","lineNumber":84,"sourceCode":"        foreach (explode('.', $relationshipName) as $nestedRelationshipName) {\n            if ($record->hasAttribute($nestedRelationshipName)) {\n                $relationship = null;\n\n                break;\n            }\n\n            if (! $record->isRelation($nestedRelationshipName)) {\n                $relationship = null;\n\n                break;\n            }\n\n            $relationship = $record->{$nestedRelationshipName}();\n            $record = $relationship->getRelated();\n        }\n\n        if (! $relationship) {\n            throw new LogicException(\"The relationship [{$relationshipName}] does not exist on the model [{$model}].\");\n        }\n\n        return $relationship;\n    }\n\n    public function getRelationshipName(): ?string\n    {\n        return $this->evaluate($this->relationship);\n    }\n\n    public function getRelationshipTitleAttribute(): ?string\n    {\n        return $this->evaluate($this->relationshipTitleAttribute);\n    }\n\n    public function getModifyRelationshipQueryUsing(): ?Closure\n    {\n        return $this->modifyRelationshipQueryUsing;","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/tables/src/Filters/Concerns/HasRelationship.php#L66-L102","documentation":"Error \"The relationship [{$relationshipName}] does not exist on the model [{$model}].\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/tables/src/Filters/Concerns/HasRelationship.php:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}