Skip to content

Route registration and exception improvements

Compare
Choose a tag to compare
@lindyhopchris lindyhopchris released this 08 Nov 18:13
· 47 commits to develop since this release

Upgrading

composer require laravel-json-api/laravel --no-update
composer up "laravel-json-api/*"

Changelog

Added

  • Exceptions converted to JSON:API errors when debug mode is on now include all previous exceptions.

Changed

  • Registering routes no longer results in the server instance being thread-cached. This more accurately reflects
    production environments, where routes would be cached so there would be no thread-cached JSON:API server when handling
    a HTTP request. This means tests (and development environments where routes are not cached) more accurately behave in
    the same way as production environments.
  • Exceptions thrown during the encoding process are no longer caught and re-thrown as previous exceptions. This is due
    to the number of questions we receive from developers who do not check previous exceptions, despite exception messages
    stating that there is a previous exception to look at.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy