- Added the ability to pass additional attributes to an ErrorResponse
- Added default value to
$guarded
on Model - Added the ability to pass JSON encode options to
toJsonResponse
- Fixed a bug where linked resources would not be associated to requested models
- Implemented proper response codes for various HTTP methods as required by jsonapi.org spec
- Added a
ERROR_MISSING_DATA
constant toHandler
for generic use where insufficient data was provided
- Fix a bug which caused One-to-One relations not to work
- Improved handling of linked resources to never include other than the requested
- Bugfixes
- Add ability to pass additional error details (or attributes) through an
Exception
- Fix a bug which caused linked models to not be correctly included
- Fix a mistake in phpDoc block
- Fix a bug which caused the handler not to expose models from a has-many relationship
- Ensure that toMany relations are presented on the entity with a plural key name
- Add the ability to map a relation name to a non-default key when serializing linked objects
- Add workaround for loading of nested relationships, see commit for details
- Fix a bug with previous update