original_string: protected function withErrorBag($errorBag, callable $callback)
      {
          $this->validatesRequestErrorBag = $errorBag;
  
          call_user_func($callback);
  
          $this->validatesRequestErrorBag = null;
      }
code: protected function withErrorBag($errorBag, callable $callback)
      {
          $this->validatesRequestErrorBag = $errorBag;
  
          call_user_func($callback);
  
          $this->validatesRequestErrorBag = null;
      }
code_tokens: protected function withErrorBag ( $ errorBag , callable $ callback ) { $ this -> validatesRequestErrorBag = $ errorBag ; call_user_func ( $ callback ) ; $ this -> validatesRequestErrorBag = null ; }
docstring: Execute a Closure within with a given error bag set as the default bag.
  
  @param  string  $errorBag
  @param  callable  $callback
  @return void
docstring_tokens: Execute a Closure within with a given error bag set as the default bag .