src/mako/http/routing/Route.php
public function middleware($middleware): Route
	{
		$this->middleware = array_merge($this->middleware, (array) $middleware);

		return $this;
	}
public function middleware($middleware): Route
	{
		$this->middleware = array_merge($this->middleware, (array) $middleware);

		return $this;
	}
public function middleware ( $ middleware ) : Route { $ this -> middleware = array_merge ( $ this -> middleware , ( array ) $ middleware ) ; return $ this ; }
Adds a set of middleware.

@param  array|string             $middleware Middleware
@return \mako\http\routing\Route
Adds a set of middleware .