Answers for "laravel validation not equal to another field"

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

laravel form validation based on another field value

$validator = Validator::make($request->all(),[
        'program'           => 'required',
        'music_instrument'  => 'required_if:program.*,in:Music'
  ]);
Posted by: Guest on November-24-2020

Code answers related to "laravel validation not equal to another field"

Browse Popular Code Answers by Language