public static $updatePaymentRules = [
'issue_id' => 'required|exists:ws_issues,id',
'payment_status' => 'required|in:0,1',
'payment_mode' => 'required|in:1,2',
'payment_amount' => 'required|numeric',
'payment_date' => 'required_if:payment_status,==,1|date|before:today',
'date' => 'required_if:payment_status,==,0|date|after:today'
];
对于payment_amount,我需要类似的东西
'payment_amount' => 'required_if:payment_status,==,1|numeric|sometimes|same_if:payment_mode,==,1:$payment'
哪里
先谢谢