{"record":{"id":"d4e9fe9072d4c5fc","repo":"filamentphp/filament","slug":"please-use-the-resources-method-on-the-panel-c","errorCode":null,"errorMessage":"Please use the `resources()` method on the panel configuration to register resources.","messagePattern":"Please use the `resources\\(\\)` method on the panel configuration to register resources\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1032,"sourceCode":"    /**\n     * @deprecated Use the `renderHook()` method on the panel configuration instead.\n     */\n    public function registerRenderHook(string $name, Closure $hook): void\n    {\n        FilamentView::registerRenderHook($name, $hook);\n    }\n\n    /**\n     * @param  array<class-string>  $resources\n     *\n     * @deprecated Use the `resources()` method on the panel configuration instead.\n     */\n    public function registerResources(array $resources): void\n    {\n        try {\n            $this->getDefaultPanel()->resources($resources);\n        } catch (NoDefaultPanelSetException $exception) {\n            throw new LogicException('Please use the `resources()` method on the panel configuration to register resources.');\n        }\n    }\n\n    /**\n     * @param  array<mixed>  $scripts\n     *\n     * @deprecated Register scripts using the `FilamentAsset` facade instead.\n     */\n    public function registerScripts(array $scripts, bool $shouldBeLoadedBeforeCoreScripts = false): void\n    {\n        throw new LogicException('Please use the `FilamentAsset` facade to register scripts. See the documentation - https://filamentphp.com/docs/support/assets#registering-javascript-files');\n    }\n\n    /**\n     * @param  array<string, mixed>  $data\n     *\n     * @deprecated Register script data using the `FilamentAsset` facade instead.\n     */","sourceCodeStart":1014,"sourceCodeEnd":1050,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1014-L1050","documentation":"Error \"Please use the `resources()` method on the panel configuration to register resources.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1032 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"}