For additional information about controllers read the Laravel controller documentation.
$this->validateAcceptHeader(Request $request, array $accepts = ["application/json"]): string
$this->buildValidationErrorResponse(Validator $validator, string $error = "Something went wrong on the server."): JsonResponse
$this->buildErrorResponse(string $error = "Something went wrong on the server.", $data = null): JsonResponse
$this->buildSuccessResponse($data = null): JsonResponse
$this->returnUnauthorized(string $error = "You are not authorized to preform this action."): JsonResponse
$this->parseBase64Image(string $base64File): UploadedFile
$this->generateEtag(string $path): string