Answers for "laravel required if two fields"

PHP
2

laravel required if another field has value

'last_name' => 'required_if:another_field,value'
Posted by: Guest on March-23-2021
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 required if

"sale_price" => "required_if:list_type,==,selling"
Posted by: Guest on March-24-2021

Code answers related to "laravel required if two fields"

Browse Popular Code Answers by Language