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