I want to validate image name in laravel. How can I get the value of input image name and pass it to rules()
method in custom created UploadRequest
. I want to validate if image name is maximum 20 characters and only alpha numeric.
uploadRequest file:
upload form view: