Helper
Response helper
API response can be many lines of code unless using a helper method.
Helper::response() accepts 3 parameters
status code
message
data
Example of returning success data
Example of returning error data
Last updated
Was this helpful?