Access the current component in a render hook
- Published: 25 Mar 2024 Updated: 04 May 2024
when you don't have access to the current resource or page, `current` for the help!
sometimes, you need access to the current component in areas where you can't, like in the render hook, you dont have the current resource or page, this will help
1\Livewire\Livewire::current()->getBreadcrumbs()
this is also helpfull to get the page title using getTitle
Related Tricks:
when you don't have access to the current resource or page, `current` for the help!
add locale parameter to all of your filament panel
how to use a resource with multiple models
add any link or actions to the topbar
how to redirect the user after loging out of filament app