0
BWBrett Wraight
The code will abort the request and return the following error: error: Validation failed.
0 Comments
public function failedValidation(Validator $validator) { abort(response()->json(['error' => $validator->errors()->first()], 400)); }