getGroupStack() public method

Get the current group stack for the router.
public getGroupStack ( ) : array
return array
コード例 #1
0
ファイル: Route.php プロジェクト: levanigongadze/Labweb
 /**
  * Parse a string based action for the "uses" fluent method.
  *
  * @param  string  $action
  * @return string
  */
 protected function addGroupNamespaceToStringUses($action)
 {
     $groupStack = last($this->router->getGroupStack());
     if (isset($groupStack['namespace']) && strpos($action, '\\') !== 0) {
         return $groupStack['namespace'] . '\\' . $action;
     }
     return $action;
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: satriashp/tour
 /**
  * Get the current group stack for the router.
  *
  * @return array 
  * @static 
  */
 public static function getGroupStack()
 {
     return \Illuminate\Routing\Router::getGroupStack();
 }