Skip to content

Releases: kodepandai/laravel-api-response

v1.3.1

23 Dec 01:56
ee49ba0
Compare
Choose a tag to compare

Fixed

  • Exception Handler fails to convert ApiResponse to JsonResponse (#16)

Added

  • Support for php8.2

v1.3.0

14 Dec 05:23
4575b76
Compare
Choose a tag to compare

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

24 Jul 02:11
v1.2.0
0a6d59e
Compare
Choose a tag to compare

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

28 Jun 13:03
v1.1.0
61d6bab
Compare
Choose a tag to compare

Fixed

  • Missing return type for ApiException (#4)

Added

  • Return type for validateOrFail
  • ExceptionHandler::renderAsApiResponse helper

v1.0.0

13 Jun 07:38
v1.0.0
d887768
Compare
Choose a tag to compare

Added

  • ApiResponse ApiResponse::success and ApiResponse::error
  • Exception ApiException and ApiValidationException