Пример #1
0
 /**
  * Get the scheme for the given route.
  *
  * @param  \Illumiante\Routing\Route  $route
  * @return string
  */
 protected function getRouteScheme($route)
 {
     if ($route->httpOnly()) {
         return $this->getScheme(false);
     } elseif ($route->httpsOnly()) {
         return $this->getScheme(true);
     } else {
         return $this->getScheme(null);
     }
 }