public function group(array $attributes, \Closure $callback)
    {
        if (isset($attributes['middleware']) && is_string($attributes['middleware'])) {
            $attributes['middleware'] = explode('|', $attributes['middleware']);
        }

        $this->updateGroupStack($attributes);

        call_user_func($callback, $this);

        array_pop($this->groupStack);
    }
public function group(array $attributes, \Closure $callback)
    {
        if (isset($attributes['middleware']) && is_string($attributes['middleware'])) {
            $attributes['middleware'] = explode('|', $attributes['middleware']);
        }

        $this->updateGroupStack($attributes);

        call_user_func($callback, $this);

        array_pop($this->groupStack);
    }
public function group ( array $ attributes , \ Closure $ callback ) { if ( isset ( $ attributes [ 'middleware' ] ) && is_string ( $ attributes [ 'middleware' ] ) ) { $ attributes [ 'middleware' ] = explode ( '|' , $ attributes [ 'middleware' ] ) ; } $ this -> updateGroupStack ( $ attributes ) ; call_user_func ( $ callback , $ this ) ; array_pop ( $ this -> groupStack ) ; }
Register a set of routes with a set of shared attributes.

@param  array  $attributes
@param  \Closure  $callback
@return void
Register a set of routes with a set of shared attributes .