Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

required_if laravel

public function rules()
 {
    return [
      'reclamo_procede'  => 'max:1',             
      'solucion_minutos' => 'required_if:reclamo_procede,==,si', 
    ];
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
2+3 =