src/Support/DelegatedValidator.php
public function sometimes($attribute, $rules, callable $callback)
    {
        $this->validator->sometimes($attribute, $rules, $callback);
    }
public function sometimes($attribute, $rules, callable $callback)
    {
        $this->validator->sometimes($attribute, $rules, $callback);
    }
public function sometimes ( $ attribute , $ rules , callable $ callback ) { $ this -> validator -> sometimes ( $ attribute , $ rules , $ callback ) ; }
Add conditions to a given field based on a Closure.

@param string $attribute
@param string|array $rules
@param callable $callback
@return void
Add conditions to a given field based on a Closure .