src/Resources/DynamoDbTable.php
protected function parseFilterValue($value, ColumnSchema $info, array &$out_params, array $in_params = [])
    {
        // if a named replacement parameter, un-name it because Laravel can't handle named parameters
        if (is_array($in_params) && (0 === strpos($value, ':'))) {
            if (array_key_exists($value, $in_params)) {
                $value = $in_params[$value];
            }
        }

        // remove quoting on strings if used, i.e. 1.x required them
        if (is_string($value)) {
            if ((0 === strcmp("'" . trim($value, "'") . "'", $value)) ||
                (0 === strcmp('"' . trim($value, '"') . '"', $value))
            ) {
                $value = substr($value, 1, -1);
            }
        }

        if (trim($value, "'\"") !== $value) {
            $value = trim($value, "'\""); // meant to be a string
        } elseif (is_numeric($value)) {
            $value = ($value == strval(intval($value))) ? intval($value) : floatval($value);
        } elseif (0 == strcasecmp($value, 'true')) {
            $value = true;
        } elseif (0 == strcasecmp($value, 'false')) {
            $value = false;
        }

        $out_params[':' . $info->name] = static::formatValue($value);
        $value = ':' . $info->name;

        return $value;
    }
protected function parseFilterValue($value, ColumnSchema $info, array &$out_params, array $in_params = [])
    {
        // if a named replacement parameter, un-name it because Laravel can't handle named parameters
        if (is_array($in_params) && (0 === strpos($value, ':'))) {
            if (array_key_exists($value, $in_params)) {
                $value = $in_params[$value];
            }
        }

        // remove quoting on strings if used, i.e. 1.x required them
        if (is_string($value)) {
            if ((0 === strcmp("'" . trim($value, "'") . "'", $value)) ||
                (0 === strcmp('"' . trim($value, '"') . '"', $value))
            ) {
                $value = substr($value, 1, -1);
            }
        }

        if (trim($value, "'\"") !== $value) {
            $value = trim($value, "'\""); // meant to be a string
        } elseif (is_numeric($value)) {
            $value = ($value == strval(intval($value))) ? intval($value) : floatval($value);
        } elseif (0 == strcasecmp($value, 'true')) {
            $value = true;
        } elseif (0 == strcasecmp($value, 'false')) {
            $value = false;
        }

        $out_params[':' . $info->name] = static::formatValue($value);
        $value = ':' . $info->name;

        return $value;
    }
@param mixed        $value
@param ColumnSchema $info
@param array        $out_params
@param array        $in_params

@return int|null|string
@throws BadRequestException