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
krekas
krekas8mo ago
#✅┊rules
krekas
krekas8mo ago
If you asking that
arne_becker
arne_beckerOP8mo ago
Yes thats true. But a custom rule is always bound to a specific form field. My validation logic concerns multiple fields at once.
Want results from more Discord servers?
Add your server