bpartner/api-response

Create response by simple way for Laravel

0.4 2024-08-07 08:57 UTC

This package is auto-updated.

Last update: 2024-11-07 09:25:59 UTC


README

Install

composer require bpartner/api-response

Publish config file

php artisan vendor:publish --tag=api-response-config

Use

In controller

return API::success($data);
return API::error();
return API::notFound();
return API::ok();