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
always return admin
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.
will there be another solution ??
you can register hooks in the panel provider itself
@Lara Zeus thanks