PHP 验证规则 (PHP yànzhèng guīzé)
電話號碼: [‘必填’, ‘正則表達式:/^\d{2,5}-?\d{1,4}-?\d{4}$/’, ‘範圍需在10至13位之間’]
请选择一个以上的复选框。
$target_type_rules = [
'section1.is_full_time_employee' => 'required_without_all:section1.is_contract_employee,section1.is_part_timer,section1.is_part_time_job,section1.is_part_time_employee,section1.is_employment_type_other',
];
$target_type_messages = [
'section1.is_full_time_employee.required_without_all' => '職種を一つ以上選択してください'
];