I want to validate data if the checkbox for particular form is checked. But it method is validating all at the same time.
public function rules()
{
return array_merge(
(new PatientRequest())->rules(),
(new ContactRequest())->rules(),
(new ChoiceRequest())->rules(),
(new EmployerRequest())->rules(),
(new StatsRequest())->rules(),
(new MiscRequest())->rules(),
(new GuardianRequest())->rules(),
(new PrimaryInsuranceRequest())->rules(),
(new SecondaryInsuranceRequest())->rules(),
(new TertiaryInsuranceRequest())->rules(),
);
}