code: public function middleware(string ...$middleware): self
      {
          $this->attributes['middleware'] = array_merge(
              Arr::wrap($this->attributes['middleware'] ?? []),
              $middleware
          );
  
          return $this;
      }
docs: Add middleware.
  
  @param string ...$middleware
  @return $this