Answers for "required if value equal laravel"

PHP
1

Laravel required if it meet some value from another field

//Laravel required if it meet some value from another field

  
       'booking_type' => [
                'integer',
                'required',
            ],
            'booking_flight_description' => [
              'required_if:booking_type,==,1' // you can use multi value by using ,
            ],
Posted by: Guest on September-21-2021
0

required_if laravel

public function rules()
 {
    return [
      'reclamo_procede'  => 'max:1',             
      'solucion_minutos' => 'required_if:reclamo_procede,==,si', 
    ];
 }
Posted by: Guest on March-26-2021

Code answers related to "required if value equal laravel"

Browse Popular Code Answers by Language