src/Routing/Router.php
/**
	 * Registers a middleware group which applies to all routes registered within that closure.
	 *
	 * @param string|string[] $middleware
	 * @param Closure $callback
	 * @return RouteGroup
	 */
Registers a middleware group which applies to all routes registered within that closure.
@param string|string[] $middleware
@param Closure $callback
@return RouteGroup
Registers a middleware group which applies to all routes registered within that closure . @param string|string [] $middleware @param Closure $callback @return RouteGroup
public function createMiddlewareGroup($middleware, Closure $callback) {
		if (!is_array($middleware)) {
			$middleware = array($middleware);
		}
		return $this->addRouteGroup($callback, array(
			'middleware' => $middleware
		));
	}
public function createMiddlewareGroup ( $ middleware , Closure $ callback ) { if ( ! is_array ( $ middleware ) ) { $ middleware = array ( $ middleware ) ; } return $ this -> addRouteGroup ( $ callback , array ( 'middleware' => $ middleware ) ) ; }
Registers a middleware group which applies to all routes registered within that closure.
Registers a middleware group which applies to all routes registered within that closure .