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
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?
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
Where does the reflection get defined if I may ask?
EvaluatesClosures trait, we use
app()->call()
🙏 Thank you for your great support Dan,