laravel-respond-format maintained by maras0830
Description
Normalization respond api format.
Author
Last update
2017/07/20 14:32
(v1.0.x-dev)
License
Downloads
685
Laravel Respond Format
In the teamwork always have some different api response, laravel-respond-format integrate some common response to laravel helper, make this to be more simpler and clear.
Installation
$ composer require maras0830/laravel-respond-format ^v2.0
or
"require": {
"maras0830/laravel-respond-format": "^v2.0" // Add this line
}
Using
return not_found();
Example: Data not fount response
{
"error": {
"message": "Data not found.",
"code": 404,
"type": "not_found"
}
}