justfeel/response

A plugin made for custom response

v1.0 2023-01-29 08:09 UTC

This package is not auto-updated.

Last update: 2025-06-29 20:24:15 UTC


README

License SIZE

Installation

Install the package in a Laravel Custom Response via Composer:

  # Install custom-response

  composer require justfeel/response
  

Usage

  # If successful
  return ResponseResult::generate(true, "Successful", ResponseCodes::HTTP_OK);
  
  #If unsuccessful
  return ResponseResult::generate(false, "Unauthorization", ResponseCodes::HTTP_UNAUTHORIZED);