FilamentPHP closure definition

Where is FilamentPHP closure parameters defined in filament, for example Section's schema closure. I want to know which parameters I am able to receive from each closure.
6 Replies
Majid Al Zariey
Majid Al ZarieyOPβ€’2y ago
Thanks Dan, Does all the closures in FilamentPHP use the same parameters? I was just asking how it was defined, and if this feature is the same as function overloading in php?
Dan Harrin
Dan Harrinβ€’2y ago
these are the ones used by form builder components we havent documented the ones for the table builder yet, but usually it is just $record
I was just asking how it was defined, and if this feature is the same as function overloading in php?
We use reflection to check which parameters are being used and inject them in the correct order
Majid Al Zariey
Majid Al ZarieyOPβ€’2y ago
Where does the reflection get defined if I may ask?
Dan Harrin
Dan Harrinβ€’2y ago
EvaluatesClosures trait, we use app()->call()
Majid Al Zariey
Majid Al ZarieyOPβ€’2y ago
πŸ™ Thank you for your great support Dan,
Want results from more Discord servers?
Add your server