original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Get all middleware, including the ones from the controller.
  
  @return array
docstring_tokens: Get all middleware including the ones from the controller .