Register Hooks in a custom page
Hello,
I use https://github.com/saade/filament-fullcalendar and i got a problem when i want to show the widget in a custom page.
I registered a new hook like this :
I also have a in my blade :
The widget appear.
I need to configure the widget with an eloquent query based on the current record.
As you can see, i try to form my query with a when based on the record.
Except that my recording is not loaded. It's as if the widget was rendered before the blade and the current recording. As a result, I don't have access to the record and my request isn't being formed correctly.
What's wrong with my code?
Have I missed something with the life cycle?
0 Replies