URL::secure PHP Метод

secure() публичный статический Метод

Generate a secure, absolute URL to the given path.
public static secure ( string $path, array $parameters = [] ) : string
$path string
$parameters array
Результат string
        public static function secure($path, $parameters = array())
        {
            return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
        }

Usage Example

Пример #1
0
 /**
  * Decide if the item should be active.
  *
  * @return null
  */
 public function checkActiveStatus()
 {
     $path = ltrim(parse_url($this->url(), PHP_URL_PATH), '/');
     $requestPath = Request::path();
     if ($this->builder->config['rest_base']) {
         $base = is_array($this->builder->config['rest_base']) ? implode('|', $this->builder->config['rest_base']) : $this->builder->conf['rest_base'];
         list($path, $requestPath) = preg_replace('@^(' . $base . ')/@', '', [$path, $requestPath], 1);
     }
     if ($this->url() == Request::url() || $this->url() == \URL::secure(Request::path())) {
         $this->activate();
     }
 }
All Usage Examples Of URL::secure