How to scope render hook to one Panel only?

Hey!

I register my render hook in AppPanelProvider like so:

FilamentView::registerRenderHook(
            name: PanelsRenderHook::TOPBAR_END,
            hook: fn (): View => view('filament.app.topbar-login-redirect'),
            scopes: 
        );


But I can not figure out how and what scope to use. I have separate panel for logged in user and for guest. Whats the easiest way to achieve it?

AppPanelProvider - guest users
UserPanelProvider - logged in users

Thanks!
Solution
There is nothing more satisfying then responding to own question with solution found in documentation 😆

https://filamentphp.com/docs/3.x/panels/configuration#render-hooks

Thanks!
Was this page helpful?