src/Primitive/Support/Str.php
public static function snake($value, $delimiter = '_')
    {
        if (isset(static::$snakeCache[$value . $delimiter]))
        {
            return static::$snakeCache[$value . $delimiter];
        }

        return static::$snakeCache[$value . $delimiter] = StaticStringy::underscored($value);;
    }
public static function snake($value, $delimiter = '_')
    {
        if (isset(static::$snakeCache[$value . $delimiter]))
        {
            return static::$snakeCache[$value . $delimiter];
        }

        return static::$snakeCache[$value . $delimiter] = StaticStringy::underscored($value);;
    }
Convert a string to snake case.

@param  string $value
@param  string $delimiter

@return string