blazor-lumen-boilerplate

Controllers

For additional information about controllers read the Laravel controller documentation.

Validating Accept Headers

$this->validateAcceptHeader(Request $request, array $accepts = ["application/json"]): string

Build Form Error Responses

$this->buildValidationErrorResponse(Validator $validator, string $error = "Something went wrong on the server."): JsonResponse

Build Error Responses

$this->buildErrorResponse(string $error = "Something went wrong on the server.", $data = null): JsonResponse

Building Success Responses

$this->buildSuccessResponse($data = null): JsonResponse

Building Unauthorized Responses

$this->returnUnauthorized(string $error = "You are not authorized to preform this action."): JsonResponse

Parsing Base64 Image Strings

$this->parseBase64Image(string $base64File): UploadedFile

Generating File ETag Values

$this->generateEtag(string $path): string