minor changes on controller

This commit is contained in:
faiqahzaman
2024-02-29 16:34:47 +08:00
parent cf52722489
commit b67f7f4948
5 changed files with 8 additions and 8 deletions
@@ -29,13 +29,13 @@ class UpdateController extends Controller
$query->where('election_id', Util::getCurrentElection());
})
],
'student_id' => [
'no_kp' => [
'required',
Rule::unique('voter')->ignore($id)->where(function($query){
$query->where('election_id', Util::getCurrentElection());
})
],
'course' => 'required'
'unit' => 'required'
]);
}