After studying Illuminate\Validation\Validator class I don't see any way to call rule validation methods (like validateImage) from outside the class. So, I guess, I should either create my own subclass of Validator, or just duplicate the logic of validateImage in my custom validation rule.
Apr 6, 2015
4
Level 2
Calling standard validation rules from a custom validation rule?
Is there a way to call a standard validation rule from my custom validation rule?
I have a form with several file inputs, all inputs have the same name images[]. I want to validate that there's at least one element in images array, and that all files in images array are images.
It would be nice to use standard image rule for that. Is there a way to do this?
Please or to participate in this conversation.