code: public function sometimes($attribute, $rules, callable $callback)
      {
          $this->validator->sometimes($attribute, $rules, $callback);
      }
docs: Add conditions to a given field based on a Closure.
  
  @param string $attribute
  @param string|array $rules
  @param callable $callback
  @return void