validate([
'contacts.name' => 'required',
'contacts.friends.name' => 'required',
'user_ids.*' => 'required',
])) {
echo view('library/validation/exam2/signup', [
'validation' => $this->validator,
]);
} else {
echo view('library/validation/exam2/success');
}
}
}