code: public function replace($middleware, $with)
  	{
  		$this->pipeline = $this->pipeline->replace($middleware, $with);
  
  		return $this;
  	}
docs: Replaces middleware on the stack
  
  @param $middleware
  @param $with
  @return $this