LaravelPackages.net
Acme Inc.
Toggle sidebar
borisnedovis/api-response

Api Response

11
0
About borisnedovis/api-response

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

Api Response

Install

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:

  • Required parameter $data
return response()->api($this->data, $this->errors, $this->statusCode);

Result:

{"data":{...},"errors":[],"status":200}

Star History Chart