© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
lukevi

renderHook scopes don't work

Hi- I'm new to this so probably doing it wrong:
in panel():
            ->renderHook(
                'panels::content.end',
                fn (array $scopes): View => view('extra-stuff', ['scopes' => $scopes]),
                // scopes: [
                //     \App\Filament\Resources\ClientResource::class,
                //     \App\Filament\Resources\ClientResource\Pages\ListClients::class
                // ]
            );
            ->renderHook(
                'panels::content.end',
                fn (array $scopes): View => view('extra-stuff', ['scopes' => $scopes]),
                // scopes: [
                //     \App\Filament\Resources\ClientResource::class,
                //     \App\Filament\Resources\ClientResource\Pages\ListClients::class
                // ]
            );

with the scopes uncommented, I would expect to see my extra stuff under client list/view/edit etc, right? if I comment out the scopes, my content appears, but otherwise it does not.
I'm freshly updated on v3.0.30 after trying this for a while on .27.

TIA for any advice!

update to add: when I @dump($scopes) in my view, it's an empty array every time.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

renderHook scope dont work
FilamentFFilament / ❓┊help
3y ago
Don't work properly in deploy
FilamentFFilament / ❓┊help
3y ago
Don't show workers count
FilamentFFilament / ❓┊help
2y ago
ExportBulkAction don't work with selected record
FilamentFFilament / ❓┊help
13mo ago