src/Requests/FormRequest.php
private function overrideValidates()
    {
        if (count($this->overrideRules) > 0) {
            foreach ($this->overrideRules as $field => $value) {
                if (empty($value) || is_int($field)) {
                    continue;
                }
                
                $this->rules[$field] = $value;
            }
        }
    }
private function overrideValidates()
    {
        if (count($this->overrideRules) > 0) {
            foreach ($this->overrideRules as $field => $value) {
                if (empty($value) || is_int($field)) {
                    continue;
                }
                
                $this->rules[$field] = $value;
            }
        }
    }
private function overrideValidates ( ) { if ( count ( $ this -> overrideRules ) > 0 ) { foreach ( $ this -> overrideRules as $ field => $ value ) { if ( empty ( $ value ) || is_int ( $ field ) ) { continue ; } $ this -> rules [ $ field ] = $ value ; } } }
Set the validation rules that apply to the request.

@return array
Set the validation rules that apply to the request .