Illuminate\Routing\Router::getGroupStack PHP Method

getGroupStack() public method

Get the current group stack for the router.
public getGroupStack ( ) : array
return array
    public function getGroupStack()
    {
        return $this->groupStack;
    }

Usage Example

Beispiel #1
0
 /**
  * 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;
 }
All Usage Examples Of Illuminate\Routing\Router::getGroupStack