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-12-07 09:42:27 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();