prefix() 보호된 메소드

Prefix the given URI with the last prefix.
protected prefix ( string $uri ) : string
$uri string
리턴 string
예제 #1
0
파일: Router.php 프로젝트: comayers/api
 /**
  * Prefix the given URI with the last prefix.
  *
  * @param  string $uri
  *
  * @return string
  */
 protected function prefix($uri)
 {
     if ($uri == $this->formatSuffix) {
         return trim(trim($this->getLastGroupPrefix(), '/') . trim($uri, '/'), '/') ?: '/';
     }
     return parent::prefix($uri);
 }