public static function make($message = null, $data = null, $meta = null)
    {
        $response = [];

        if (!empty($message)) {
            $response["message"] = $message;
        }

        if ($data !== null && is_array($data)){
            $response["data"] = $data;
        }

        if ($meta !== null && is_array($meta)){
            $response["meta"] = $meta;
        }

        $returnResponse = \Response::make($response);

        return $returnResponse;
    }
public static function make($message = null, $data = null, $meta = null)
    {
        $response = [];

        if (!empty($message)) {
            $response["message"] = $message;
        }

        if ($data !== null && is_array($data)){
            $response["data"] = $data;
        }

        if ($meta !== null && is_array($meta)){
            $response["meta"] = $meta;
        }

        $returnResponse = \Response::make($response);

        return $returnResponse;
    }
public static function make ( $ message = null , $ data = null , $ meta = null ) { $ response = [ ] ; if ( ! empty ( $ message ) ) { $ response [ "message" ] = $ message ; } if ( $ data !== null && is_array ( $ data ) ) { $ response [ "data" ] = $ data ; } if ( $ meta !== null && is_array ( $ meta ) ) { $ response [ "meta" ] = $ meta ; } $ returnResponse = \ Response :: make ( $ response ) ; return $ returnResponse ; }
Make new success response
@param string $message
@param array $data
@return \Response
Make new success response