borisnedovis/api-response is a Laravel package for api response.
It currently has 0 GitHub stars and 11 downloads on Packagist.
Install it with composer require borisnedovis/api-response.
Discover more Laravel packages by borisnedovis
or browse all Laravel packages to compare alternatives.
Last updated
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}