public function gatherMiddleware()
    {
        if (! is_null($this->computedMiddleware)) {
            return $this->computedMiddleware;
        }

        $this->computedMiddleware = [];

        return $this->computedMiddleware = array_unique(array_merge(
            $this->middleware(), $this->controllerMiddleware()
        ), SORT_REGULAR);
    }
public function gatherMiddleware()
    {
        if (! is_null($this->computedMiddleware)) {
            return $this->computedMiddleware;
        }

        $this->computedMiddleware = [];

        return $this->computedMiddleware = array_unique(array_merge(
            $this->middleware(), $this->controllerMiddleware()
        ), SORT_REGULAR);
    }
public function gatherMiddleware ( ) { if ( ! is_null ( $ this -> computedMiddleware ) ) { return $ this -> computedMiddleware ; } $ this -> computedMiddleware = [ ] ; return $ this -> computedMiddleware = array_unique ( array_merge ( $ this -> middleware ( ) , $ this -> controllerMiddleware ( ) ) , SORT_REGULAR ) ; }
Get all middleware, including the ones from the controller.

@return array
Get all middleware including the ones from the controller .