Releases: nicklaw5/larapi
Releases · nicklaw5/larapi
3.0.1
Replaced deprecated container share
method with bind
, for Laravel 5.4 compatibility.
3.0
- Simplified response methods
- Responses no longer return header status' (statusCode, stutusText) in the body of the response. They simply return a
success
boolean.
- Added
noContent()
and unprocessableEntity()
response methods.
2.1
Error responses can now return an array of errors as well as a string.
For example:
{
"code": 400,
"status": "Bad Request",
"message": "error",
"response": {
"errorCode": 400,
"errorMessage": [
"'name' is required, but was not provided.",
"'shop_category_id' is required, but was not provided."
]
}
}
2.0
breaking changes introduced in this version
1.2
- Created ability to add custom response header
- Updated README.md
1.1.1
fixed a typo added readme.md