errors()->first(); throw new ApiException([ 'message' => $firstError, "status" => Response::HTTP_UNPROCESSABLE_ENTITY ]); } }