Releases: kodepandai/laravel-api-response
Releases · kodepandai/laravel-api-response
v1.3.1
Fixed
- Exception Handler fails to convert ApiResponse to JsonResponse (#16)
Added
v1.3.0
Fixed
- Laravel exception handler does not recognize Responsable trait (#11)
- Return 404
NOT_FOUND
for laravel ModelNotFoundException
(#10)
Added
- Support
Arrayable
interface for response data (#13)
v1.2.0
Fixed
- Add try/catch handler when parsing exception to response
- Return 401
HTTP_UNAUTHORIZED
for laravel AuthenticationException
- Get data directly from
ResourceCollection
data type
- Add more tests to improve coverage
v1.1.0
Fixed
- Missing return type for
ApiException
(#4)
Added
- Return type for
validateOrFail
ExceptionHandler::renderAsApiResponse
helper
v1.0.0
Added
- ApiResponse
ApiResponse::success
and ApiResponse::error
- Exception
ApiException
and ApiValidationException