cloudcreativity / laravel-json-api

JSON API (jsonapi.org) package for Laravel applications.
http://laravel-json-api.readthedocs.io/en/latest/
Apache License 2.0
780 stars 109 forks source link

Documentation for creating an error is incorrect. #526

Closed zero-to-prod closed 4 years ago

zero-to-prod commented 4 years ago

The documentation for creating an error https://laravel-json-api.readthedocs.io/en/latest/features/errors/ is incorrect.

The class CloudCreativity\LaravelJsonApi\Document\Error; does not exist. It is a folder.

If there is a different way to create an error, please direct me to the right source.

lindyhopchris commented 4 years ago

Hi! Thanks for reporting, the FQN should be CloudCreativity\LaravelJsonApi\Document\Error\Error and the static method fromArray if creating from an array. I've updated the docs.