protected function failedValidation(Validator $validator)
{
throw new HttpResponseException(response()->json([
'errors' => $validator->errors(),
'status' => false
], 422));
}
protected function failedValidation(Validator $validator) {
throw new HttpResponseException(response()->json($validator->errors()->all(), 422));
}