Get Filament id Panel

hello I would like to registerRenderHook only if the id of my panel is different from admin, how can I retrieve the id of my current panel. Filament::getCurrentPanel()->getId(); always return admin
6 Replies
karim charfaoui
karim charfaouiOP12mo ago
always return admin
No description
Andrew Wallo
Andrew Wallo12mo ago
Use a listener or a middleware instead, maybe putting this in boot in a Service Provider doesn't have time to resolve the current panel instance yet.
karim charfaoui
karim charfaouiOP12mo ago
will there be another solution ??
Lara Zeus
Lara Zeus12mo ago
you can register hooks in the panel provider itself
karim charfaoui
karim charfaouiOP12mo ago
@Lara Zeus thanks
Want results from more Discord servers?
Add your server