Download the PHP package sinema/json-api-error-laravel without Composer
On this page you can find all versions of the php package sinema/json-api-error-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sinema/json-api-error-laravel
More information about sinema/json-api-error-laravel
Files in sinema/json-api-error-laravel
Download sinema/json-api-error-laravel
More information about sinema/json-api-error-laravel
Files in sinema/json-api-error-laravel
Vendor sinema
Package json-api-error-laravel
Short Description Format generic JSON API errors for Laravel
License MIT
Homepage https://github.com/SineMah/json-api-error-laravel
Package json-api-error-laravel
Short Description Format generic JSON API errors for Laravel
License MIT
Homepage https://github.com/SineMah/json-api-error-laravel
Please rate this library. Is it a good library?
Informations about the package json-api-error-laravel
JSON:API error response
Spec
https://jsonapi.org/examples/#error-objects-basics
Installation
composer require sinema/json-api-error-laravel
Usage
In your Laravel controller:
Response
Build an error stack.
Response
Laravel Response
You do not need to pass a status code via the json method. The status code will be fetched from the first error you pushed in the bag.
You can also overwrite the status code with the json method.
All versions of json-api-error-laravel with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2.0|^8.3.0
sinema/json-api-error Version ^0.7
laravel/framework Version ^9.10|^10.0.2|^11.0
sinema/json-api-error Version ^0.7
laravel/framework Version ^9.10|^10.0.2|^11.0
The package sinema/json-api-error-laravel contains the following files
Loading the files please wait ....