filamentphp/filament · error · LogicException

Please use the `resources()` method on the panel configurati

Error message

Please use the `resources()` method on the panel configuration to register resources.

What it means

Error "Please use the `resources()` method on the panel configuration to register resources." thrown in filamentphp/filament.

Source

Thrown at packages/panels/src/FilamentManager.php:1032

    /**
     * @deprecated Use the `renderHook()` method on the panel configuration instead.
     */
    public function registerRenderHook(string $name, Closure $hook): void
    {
        FilamentView::registerRenderHook($name, $hook);
    }

    /**
     * @param  array<class-string>  $resources
     *
     * @deprecated Use the `resources()` method on the panel configuration instead.
     */
    public function registerResources(array $resources): void
    {
        try {
            $this->getDefaultPanel()->resources($resources);
        } catch (NoDefaultPanelSetException $exception) {
            throw new LogicException('Please use the `resources()` method on the panel configuration to register resources.');
        }
    }

    /**
     * @param  array<mixed>  $scripts
     *
     * @deprecated Register scripts using the `FilamentAsset` facade instead.
     */
    public function registerScripts(array $scripts, bool $shouldBeLoadedBeforeCoreScripts = false): void
    {
        throw new LogicException('Please use the `FilamentAsset` facade to register scripts. See the documentation - https://filamentphp.com/docs/support/assets#registering-javascript-files');
    }

    /**
     * @param  array<string, mixed>  $data
     *
     * @deprecated Register script data using the `FilamentAsset` facade instead.
     */

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/panels/src/FilamentManager.php:1032 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/d4e9fe9072d4c5fc. Report an issue: GitHub.