laravel-json-api/exceptions
JSON:API exception parsing for Laravel applications.
v3.3.0
1.8M downloads/mo
#2937 most downloaded on Packagist
laravel-json-api/exceptions
What this package is like to depend on
Last release 4 months ago
28 Mar 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
16 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
16 releases · Jan 2021 to Mar 2026
2022
2023
2024
2025
2026
Releases
latest 16-
v3.3.028 Mar 2026Release notes
Open source →Added
- Package now supports Laravel 13.
Changed
- Dropped support for
laravel-json-api/corev4.
-
v3.2.024 Feb 2025 -
v3.1.030 Nov 2024Release notes
Open source →Added
- Allow
laravel-json-api/corev4 and v5.
Fixed
- Remove deprecation notices for PHP 8.4.
- Allow
-
v3.0.012 Mar 2024Release notes
Open source →Changed
- Package is now licensed under the MIT License.
- BREAKING Package now requires Laravel 11.
- Minimum PHP version is now
8.2.
-
v2.1.008 Nov 2023 -
v2.0.129 Jul 2023Release notes
Open source →Fixed
- #3 Ensure HTTP status is correctly set when the status on a
validation exception is not
422.
- #3 Ensure HTTP status is correctly set when the status on a
validation exception is not
-
v2.0.014 Feb 2023 -
v1.1.114 Sep 2022Release notes
Open source →Fixed
- laravel-json-api#204 Fixed
acceptsMiddlewarefunctionality when there is no matched route on the request.
- laravel-json-api#204 Fixed
-
v1.1.009 Feb 2022Release notes
Open source →Added
- Package now supports Laravel 9.
- Added support for PHP 8.1.
- Package now supports v2 of the
laravel-json-api/coreandlaravel-json-api/validationdependencies.
-
v1.0.031 Jul 2021 -
v1.0.0-beta.410 Jul 2021 pre-releaseRelease notes
Open source →Added
- When converting an exception to the default JSON:API error, detailed exception information will now be added to the
JSON:API error if the application is running in debug mode. The exception code will be added to the
codemember, and the actual exception message to thedetailmember. Themetamember will contain the exception class, file, line number and stack trace.
Removed
- This package no longer handles the
UnexpectedDocumentExceptionfrom thelaravel-json-api/specpackage. The exception has been removed from that package, and it instead throws aJsonApiExceptionif it cannot decode a JSON string.
- When converting an exception to the default JSON:API error, detailed exception information will now be added to the
JSON:API error if the application is running in debug mode. The exception code will be added to the
-
v1.0.0-beta.326 Apr 2021 pre-releaseRelease notes
Open source →Added
- Multiple
accept*helpers can now be added to the exception parser. This is useful when there are multiple different circumstances where you want to force the parser to render JSON:API errors - for example, if the client accepts JSON or if the current route has theapimiddleware. When multiple accept helpers are used, the parser will render JSON:API errors if any of the helpers returntrue.
- Multiple
-
v1.0.0-beta.215 Apr 2021 pre-releaseRelease notes
Open source →Added
- #1 The
ExceptionParsernow has theacceptsAll()andacceptsMiddleware()helper methods, for determining whether JSON:API errors should be rendered.
- #1 The
-
v1.0.0-beta.130 Mar 2021 pre-release -
v1.0.0-alpha.209 Feb 2021 pre-releaseRelease notes
Open source →Added
- Allow the exception parser to render responses for
application/jsonusing the parser'sacceptsJson()method. - Allow a developer to provide a callback to determine if an exception should be rendered as JSON:API via the
parser's
accept()method.
Changed
- BREAKING Made method signatures on the
ExceptionParserclass consistent, so that they now take the exception as the first argument and the request as the second. (Previously some had these the other way round.) This makes the signatures consistent with the order of arguments that Laravel uses when calling render callbacks.
- Allow the exception parser to render responses for
-
v1.0.0-alpha.125 Jan 2021 pre-release