private function getGroupMiddleware() : array
    {
        $middleware = [];

        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['middleware'])) {
                if (!is_array($groupOptions['middleware'])) {
                    $groupOptions['middleware'] = [$groupOptions['middleware']];
                }

                $middleware = array_merge($middleware, $groupOptions['middleware']);
            }
        }

        return $middleware;
    }
private function getGroupMiddleware() : array
    {
        $middleware = [];

        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['middleware'])) {
                if (!is_array($groupOptions['middleware'])) {
                    $groupOptions['middleware'] = [$groupOptions['middleware']];
                }

                $middleware = array_merge($middleware, $groupOptions['middleware']);
            }
        }

        return $middleware;
    }
private function getGroupMiddleware ( ) : array { $ middleware = [ ] ; foreach ( $ this -> groupOptionsStack as $ groupOptions ) { if ( isset ( $ groupOptions [ 'middleware' ] ) ) { if ( ! is_array ( $ groupOptions [ 'middleware' ] ) ) { $ groupOptions [ 'middleware' ] = [ $ groupOptions [ 'middleware' ] ] ; } $ middleware = array_merge ( $ middleware , $ groupOptions [ 'middleware' ] ) ; } } return $ middleware ; }
Gets the middleware in the current group stack

@return array The list of middleware of all the groups
Gets the middleware in the current group stack