amin.aliee/result-response

v1.1.4 2021-12-01 07:09 UTC

This package is auto-updated.

Last update: 2024-10-29 06:13:05 UTC


README

template for restapi response.

install laravel >= 5 and lumen >=5.

composer require amin.aliee/result-response

add to provider in confing/app.php

// in laravel
Prs\ResultResponse\Provider\ResultResponseServiceProvider::class
//&
Result => Prs\ResultResponse\Service\Result::class

usage

Result::response(true , ['can be anything'] , ['additional'], 'server message' , 200)

//or

result(true , ['can be anything'] , ['additional'], 'server message' , 200)