When try to used failedValidation i got error
Declaration of App\Http\Requests\RegistrationRequest::failedValidation(App\Http\Requests\Validator $validator) should be compatible with Urameshibr\Requests\FormRequest::failedValidation(Illuminate\Contracts\Validation\Validator $validator)Code to get errors For Custom format
protected function failedValidation(Validator $validator)
{
$error = collect($validator->errors())->collapse()->toArray();
}
Remeber:
In This Class Urameshibr\Requests\FormRequest failedValidation Method exist;
When try to used failedValidation i got error
Declaration of App\Http\Requests\RegistrationRequest::failedValidation(App\Http\Requests\Validator $validator) should be compatible with Urameshibr\Requests\FormRequest::failedValidation(Illuminate\Contracts\Validation\Validator $validator)
Code to get errors For Custom formatRemeber: In This Class Urameshibr\Requests\FormRequest failedValidation Method exist;