app/helpers.php
/**
     * Return a new api_response from the application.
     *
     * @param $data
     * @return ApiResponse
     */
Return a new api_response from the application.
@param $data
@return ApiResponse
Return a new api_response from the application . @param $data @return ApiResponse
function api_response($data = null)
    {
        if (null === $data) {
            $data = 'Success';
        }
        return new ApiResponse($data);
    }
function api_response ( $ data = null ) { if ( null === $ data ) { $ data = 'Success' ; } return new ApiResponse ( $ data ) ; }
Return a new api_response from the application.
Return a new api_response from the application .