HTTP response status codes indicate whether a specific HTTP request has been successfully completed. Responses are grouped in five classes:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers\API; | |
| class ResponseFormatter | |
| { | |
| protected static $response = [ | |
| 'meta' => [ | |
| 'code' => 200, | |
| 'status' => 'success', |