Get Validator instance of a form
Hi folks,
I need a very special validation which is not directly bound to a form field. I would like to get the Validator instance to add some custom logic like described in the livewire docs (https://livewire.laravel.com/docs/validation#accessing-the-validator-instance).
How can I get the validator, for example, an
Tables\Actions\CreateAction
?
I have searched the source code really hard, but I couldn't finde anything that helps.
@Dan Harrin Can u help me out?Laravel
Validation | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
4 Replies
#✅┊rules
You can create your own custom rule https://filamentphp.com/docs/3.x/forms/validation#custom-rules
If you asking that
Yes thats true. But a custom rule is always bound to a specific form field. My validation logic concerns multiple fields at once.