justfeel/response

为自定义响应而制作的插件

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

This package is not auto-updated.

Last update: 2024-09-22 16:34:33 UTC


README

License SIZE

安装

使用Composer在Laravel Custom Response中安装此包

  # Install custom-response

  composer require justfeel/response
  

用法

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