maras0830/laravel-respond-format

Normalization respond api format.

v2.0.7 2017-07-07 04:42 UTC

README

CircleCI Total Downloads
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"
  }
}

Document (Not Finish)