это моя проверка для хранения массивов длины 10. здесь я поставил имя минимальное значение один. но он не работает и выдает ошибку «требуется имя» 9 раз.
public $bulk_product_rules = [
'name.*' => 'min:1|required_with:price.*,booking_account_code.*,final_account_code.*',
'price.*' => 'required_with:name.*,booking_account_code.*,final_account_code.*',
'booking_account_code.*' => 'required_with:name.*,price.*,final_account_code.*',
'final_account_code.*' => 'required_with:name.*,price.*,booking_account_code.*',
];
//Custom validation message
public $bulk_product_messages = [
'name.*' => 'The name is required',
'price.*' => 'The price field is required',
'booking_account_code.*' => 'The bank account code field is required',
'final_account_code.*' => 'The final account code field is required',
];