src/Routing/Route.php
/**
	 * Gets an array of middleware which must run before the route action.
	 *
	 * @return array
	 */
Gets an array of middleware which must run before the route action.
@return array
Gets an array of middleware which must run before the route action . @return array
public function middleware() {
		$middleware = $this->getGroup()->middleware();
		$controller = $this->getControllerInstance();
		if (!is_null($controller)) {
			$middleware = array_merge($middleware, (array)$controller->getMiddleware());
		}
		return array_unique($middleware);
	}
public function middleware ( ) { $ middleware = $ this -> getGroup ( ) -> middleware ( ) ; $ controller = $ this -> getControllerInstance ( ) ; if ( ! is_null ( $ controller ) ) { $ middleware = array_merge ( $ middleware , ( array ) $ controller -> getMiddleware ( ) ) ; } return array_unique ( $ middleware ) ; }
Gets an array of middleware which must run before the route action.
Gets an array of middleware which must run before the route action .