This Package helps developers to easily make response for API
novaday-co/laravel-api-response is a Laravel package for this package helps developers to easily make response for api.
It currently has 3 GitHub stars and 1 downloads on Packagist.
Install it with composer require novaday-co/laravel-api-response.
Discover more Laravel packages by novaday-co
or browse all Laravel packages to compare alternatives.
Last updated
This Package helps developers to easily make response for API . Add extra data to collection response . Short magic method that use your translate files to set messages .
composer require novaday-co/laravel-api-response
Api::success("Successful Action")->response();
Api::success("Successful Action")->response();
Api::failure("Failed")->response();
Api::customResponse(201,'Created Successfully',['key'=>'value'])->response();
dataApi::success('Ok',['key'=>'value'])->response();
dataApi::success('Ok',[ User::all() ])->withData([ Customer::first() ])->response();
dataApi::success('Ok',[ User::all() ])->with([ 'Customers' => Customer::all() ])->response();
Api::updated()->response();