MThomas
7271
49
General

[Laravel 5] Modify input before validation

Posted 4 years ago by MThomas

I want to modify the input value of a form before it is passed to the validator using the new Request validation in Laravel 5.

So the question is, where can I modify (for example trim the input or encode the input) before it is passed to the validator?

In L4 I would do this before passing the values to Validator::make(), but that step is Handled by a Request validator in L5.

Please sign in or create an account to participate in this conversation.