public static function createAbsolute($url, array $params = array())
    {
        $url = self::addParams($url, $params);
        $url = ltrim($url, '/');
        $baseUrl = app()->request->getBaseUrl();

        return $baseUrl.'/'.$url;
    }
public static function createAbsolute($url, array $params = array())
    {
        $url = self::addParams($url, $params);
        $url = ltrim($url, '/');
        $baseUrl = app()->request->getBaseUrl();

        return $baseUrl.'/'.$url;
    }
public static function createAbsolute ( $ url , array $ params = array ( ) ) { $ url = self :: addParams ( $ url , $ params ) ; $ url = ltrim ( $ url , '/' ) ; $ baseUrl = app ( ) -> request -> getBaseUrl ( ) ; return $ baseUrl . '/' . $ url ; }
Creates absolute url.

@param string $url
@param array  $params Assosiative array in format [key => value ] for GET parameters

@return string
Creates absolute url .