src/Router/Scope.php
public function use($middlewares) {
		$middlewares = (array)$middlewares;

		if ($this->namespace) {
			foreach ($middlewares as &$middleware) {
				$middleware = $this->namespace . $middleware;
			}
		}

		$this->middlewares = array_merge($this->middlewares, (array)$middlewares);

		return $this;
	}
public function use($middlewares) {
		$middlewares = (array)$middlewares;

		if ($this->namespace) {
			foreach ($middlewares as &$middleware) {
				$middleware = $this->namespace . $middleware;
			}
		}

		$this->middlewares = array_merge($this->middlewares, (array)$middlewares);

		return $this;
	}
public function use ( $ middlewares ) { $ middlewares = ( array ) $ middlewares ; if ( $ this -> namespace ) { foreach ( $ middlewares as & $ middleware ) { $ middleware = $ this -> namespace . $ middleware ; } } $ this -> middlewares = array_merge ( $ this -> middlewares , ( array ) $ middlewares ) ; return $ this ; }
Add middlewares.

@param string[]|string $middlewares
@return self
Add middlewares .