$titleRule, 'description' => 'between:1,5000', 'stop_processing' => 'boolean', 'trigger' => 'required|in:store-journal,update-journal', 'rule-trigger.*' => 'required|in:' . join(',', $validTriggers), 'rule-trigger-value.*' => 'required|min:1', 'rule-action.*' => 'required|in:' . join(',', $validActions), 'rule-action-value.*' => 'required_if:rule-action.*,' . join(',', $contextActions) ]; } }