laravel required if value code example
Example 1: laravel required if
"sale_price" => "required_if:list_type,==,selling"
Example 2: required_if laravel
public function rules()
{
return [
'reclamo_procede' => 'max:1',
'solucion_minutos' => 'required_if:reclamo_procede,==,si',
];
}