1protected function failedValidation(Validator $validator)
2{
3 throw new HttpResponseException(response()->json([
4 'errors' => $validator->errors(),
5 'status' => false
6 ], 422));
7}
8
1protected function failedValidation(Validator $validator) {
2 throw new HttpResponseException(response()->json($validator->errors()->all(), 422));
3}
4