3 years ago

validate() method on controller doesn't flash old input

Posted 3 years ago by peanut

I can't find anywhere in the documentation on how to flash the old input back to the previous request. Originally you would put $request->flash();, but I am using their $this->validate() method right on the controller like so:

$this->validate($request, $this->messages->getValidationRules());

However, when it fails and redirects back, it will not flash my old input. Is there a way to do this? I tried putting the flash code before the validate method, but that didn't work either.

Thank you for any help.

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