How to get panel id name?
How do I get it in the middle of a form or table or wherever?
I mean the example.com/>>>adminaltered<<</ part for your admin/panel.
I want to change it dynamically and not hardcode it in the prefix in the textfield. That's why I am asking.
2 Replies
Solution
filament()->getCurrentPanel()
?Thanks, you pointed me in the right direction. This worked:
filament()->getCurrentPanel()->getId()