PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 16
  1. v3.3.0 28 Mar 2026
    Release notes

    Added

    • Package now supports Laravel 13.

    Changed

    • Dropped support for laravel-json-api/core v4.
    Open source →
  2. v3.2.0 24 Feb 2025
    Release notes

    Added

    • Package now supports Laravel 11 and 12.
    Open source →
  3. v3.1.0 30 Nov 2024
    Release notes

    Added

    • Allow laravel-json-api/core v4 and v5.

    Fixed

    • Remove deprecation notices for PHP 8.4.
    Open source →
  4. v3.0.0 12 Mar 2024
    Release notes

    Changed

    • Package is now licensed under the MIT License.
    • BREAKING Package now requires Laravel 11.
    • Minimum PHP version is now 8.2.
    Open source →
  5. v2.1.0 08 Nov 2023
    Release notes

    Add debug output of previous exceptions.

    Open source →
    Release notes

    Added

    • Debug exception output now includes any previous exceptions.
    Open source →
  6. v2.0.1 29 Jul 2023
    Release notes

    Use HTTP status from validation exception.

    Open source →
    Release notes

    Fixed

    • #3 Ensure HTTP status is correctly set when the status on a validation exception is not 422.
    Open source →
  7. v2.0.0 14 Feb 2023
    Release notes

    Changed

    • Upgraded to Laravel 10 and set minimum PHP version to 8.1.
    Open source →
  8. v1.1.1 14 Sep 2022
    Release notes

    Fix accepts middleware when no matching route.

    Open source →
    Release notes

    Fixed

    • laravel-json-api#204 Fixed acceptsMiddleware functionality when there is no matched route on the request.
    Open source →
  9. v1.1.0 09 Feb 2022
    Release notes

    Added

    • Package now supports Laravel 9.
    • Added support for PHP 8.1.
    • Package now supports v2 of the laravel-json-api/core and laravel-json-api/validation dependencies.
    Open source →
  10. v1.0.0 31 Jul 2021
    Release notes

    Initial stable release, with no changes from 1.0.0-beta.4.

    Open source →
  11. v1.0.0-beta.4 10 Jul 2021 pre-release
    Release notes

    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 code member, and the actual exception message to the detail member. The meta member will contain the exception class, file, line number and stack trace.

    Removed

    • This package no longer handles the UnexpectedDocumentException from the laravel-json-api/spec package. The exception has been removed from that package, and it instead throws a JsonApiException if it cannot decode a JSON string.
    Open source →
  12. v1.0.0-beta.3 26 Apr 2021 pre-release
    Release notes

    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 the api middleware. When multiple accept helpers are used, the parser will render JSON:API errors if any of the helpers return true.
    Open source →
  13. v1.0.0-beta.2 15 Apr 2021 pre-release
    Release notes

    Added

    • #1 The ExceptionParser now has the acceptsAll() and acceptsMiddleware() helper methods, for determining whether JSON:API errors should be rendered.
    Open source →
  14. v1.0.0-beta.1 30 Mar 2021 pre-release
    Release notes

    Initial beta release, no changes since alpha.2.

    Open source →
  15. v1.0.0-alpha.2 09 Feb 2021 pre-release
    Release notes

    Added

    • Allow the exception parser to render responses for application/json using the parser's acceptsJson() 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 ExceptionParser class 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.
    Open source →
  16. v1.0.0-alpha.1 25 Jan 2021 pre-release
    Release notes

    Initial release.

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive