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:
);
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!...
Jump to solution
1 Reply
Solution
aurawindsurfing
aurawindsurfingβ€’10mo ago
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!
Want results from more Discord servers?
Add your server