Maras0830 / laravel-respond-format by Maras0830

Normalization respond api format.
684
1
3
Package Data
Maintainer Username: Maras0830
Maintainer Contact: maraschen@4gamers.com.tw (Maras Chen)
Package Create Date: 2017-05-17
Package Last Update: 2017-07-20
Language: PHP
License: MIT
Last Refreshed: 2024-05-04 15:01:01
Package Statistics
Total Downloads: 684
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 3
Total Forks: 1
Total Open Issues: 0

Laravel Respond Format

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)