Is there a way to modify input fields inside a form request class before the validation takes place?
I want to modify some input date fields as follows but it doesn
The FormRequest has a method validationData() that return the data to validate, so i'm overriding it in my form request:
all(), [ 'number' => preg_replace("/[^0-9]/", "", $this->number) ] ); } ... }
It work fine i'm using Laravel 5.4 :)