📜  如果 Laravel 满足另一个字段的某个值,则需要 Laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.895000             🧑  作者: Mango

代码示例2
//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 ,
            ],