src/Url.php
public static function segmentUri($uri = null)
    {
        $uri = (! is_null($uri)) ? $uri : $_SERVER['REQUEST_URI'];

        return explode('/', trim($uri, '/'));
    }
public static function segmentUri($uri = null)
    {
        $uri = (! is_null($uri)) ? $uri : $_SERVER['REQUEST_URI'];

        return explode('/', trim($uri, '/'));
    }
Get all URL parts based on a / seperator.

@since 1.1.5

@param string $uri → URI to segment

@return string → segments