public static function delete($name = null, $default = null)
    {
        $parsedBody = app()->request->getParsedBody();

        if (is_null($name)) {
            return $parsedBody;
        }

        if (isset($parsedBody[$name])) {
            return $parsedBody[$name];
        }

        return $default;
    }
public static function delete($name = null, $default = null)
    {
        $parsedBody = app()->request->getParsedBody();

        if (is_null($name)) {
            return $parsedBody;
        }

        if (isset($parsedBody[$name])) {
            return $parsedBody[$name];
        }

        return $default;
    }
public static function delete ( $ name = null , $ default = null ) { $ parsedBody = app ( ) -> request -> getParsedBody ( ) ; if ( is_null ( $ name ) ) { return $ parsedBody ; } if ( isset ( $ parsedBody [ $ name ] ) ) { return $ parsedBody [ $ name ] ; } return $ default ; }
Retrieves DELETE parameter.

@param string $name Name of DELETE parameter, if null then all parameter will be returned
@param mixed $default Default value returned if *$name* is not null but does not exist in DELETE request

@return mixed
Retrieves DELETE parameter .