TextInput url too few parameters
In the documentation the
->url()
has no parameters, and I can't see anything about it. However, it seems that it needs to have at least 1 parameter that can be either closure, null or a string.
Where can I find the full documentation for the TextInput file, or in general. Sometimes I feel there are missing parts. I am not complaining, because Filament is incredible, but if there's a hidden section with full api reference, would appreciate being pointed to it π4 Replies
On TextInput url() is a validation method requiring the value to be a valid url. It excepts closures etc to allow dynamic making it required etc.
But there is an api reference at https://filamentphp.com/api/3.x/index.html
Ok, thanks. But is there anywhere showing how closures should look like and what they accept as params? Went to api reference and didn't see url method, I guess I need to go up the inheritance chain
btw, are you guys open to better documentation for the api reference?
I found the method, but I can't figure out how the closure function should look like, as there is no example or explanation
Solution
how did I miss it? π«£
Thanks