Support the ongoing development of Laravel.io →
Input Validation
Last updated 2 years ago.
0

Hi!

Bad the exact same issue. You can solve this by defining your own "validator" function inside your form request class.

The default validation doesn't use the $_FILES array.

/** * Get the validator instance for the request. * * @param $factory \Illuminate\Validation\Factory * * @return \Illuminate\Validation\Validator */ public function validator($factory) { return $factory->make( $this->all(), $this->rules() ); }

Edit: sorry for the formatting issues. I'm writing this on my phone ;) I'll edit it later

Last updated 2 years ago.
0

Hello,

I made a pull request because I think that getValidatorInstance() must be changed to get all inputs.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bestmomo bestmomo Joined 20 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.