maras0830 / laravel-respond-format
Normalization respond api format.
v2.0.7
2017-07-07 04:42 UTC
Requires
- php: >=7.1
- league/fractal: ~0.13
Requires (Dev)
- illuminate/contracts: ~5.0
- illuminate/http: ~5.0
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
README
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" } }