code: protected function isConditionalRule($attribute, $rule)
      {
          return isset($this->conditional[$attribute]) &&
          in_array($rule, $this->conditional[$attribute]);
      }
docs: Determine if rule is passed with sometimes.
  
  @param mixed $attribute
  @param string $rule
  @return bool