ericliao79/laravel-respond-format

Normalization respond api format.

v2.1.1 2018-05-18 01:49 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)