Downloads
Stars
Version
To install through Composer, by run the following command:
composer require borisnedovis/api-response
And add provider in app.php:
BorisNedovis\ApiResponse\Providers\ApiResponseServiceProvider::class
Use:
return response()->api($this->data, $this->errors, $this->statusCode);
Result:
{"data":{...},"errors":[],"status":200}