Level 73
You might need to override the failedValidation method:
protected function failedValidation( Validator $validator )
{
parent::failedValidation($validator); // TODO: Change the autogenerated stub
}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I have a form validator made by FormRequest with rules(), messages() and attribute() set. This validator is working fine, but I need when it fail to pass extra variable $active_tab = 1; to the blade to switch Bootstrap's tab to the right one, where inputs are located. Can you provide me a solution to do this? Thanks a lot
Please or to participate in this conversation.