{"record":{"id":"42d080b9af2eaa2f","repo":"filamentphp/filament","slug":"class-static-class-extends-viewcomponent-c","errorCode":null,"errorMessage":"Class [{static::class}] extends [{ViewComponent::class}] but does not have a [$view] property defined.","messagePattern":"Class \\[(.+?)\\] extends \\[(.+?)\\] but does not have a \\[\\$view\\] property defined\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/support/src/Components/ViewComponent.php","lineNumber":102,"sourceCode":"        $this->viewData[] = $data;\n\n        return $this;\n    }\n\n    /**\n     * @return view-string\n     */\n    public function getView(): string\n    {\n        if (isset($this->view)) {\n            return $this->view;\n        }\n\n        if (filled($defaultView = $this->getDefaultView())) {\n            return $defaultView;\n        }\n\n        throw new LogicException('Class [' . static::class . '] extends [' . ViewComponent::class . '] but does not have a [$view] property defined.');\n    }\n\n    public function hasView(): bool\n    {\n        return isset($this->view) || $this->getDefaultView();\n    }\n\n    /**\n     * @return view-string | null\n     */\n    public function getDefaultView(): ?string\n    {\n        return $this->evaluate($this->defaultView);\n    }\n\n    /**\n     * @return array<string, mixed>\n     */","sourceCodeStart":84,"sourceCodeEnd":120,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/support/src/Components/ViewComponent.php#L84-L120","documentation":"Error \"Class [{static::class}] extends [{ViewComponent::class}] but does not have a [$view] property defined.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/support/src/Components/ViewComponent.php:102 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"}