Skip to content

Commit

Permalink
Update register controller
Browse files Browse the repository at this point in the history
  • Loading branch information
meowfu0 committed Oct 4, 2024
1 parent b6fa0bf commit 41a9907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function validator(array $data)
'first_name' => ['required', 'string', 'max:255'],
'last_name' => ['required', 'string', 'max:255'],
'phone_number' => ['required', 'string', 'max:15'],
'course_bloc' => ['required', 'in:A,B,C,D,E,F'], // Updated from 'block' to 'course_bloc'
'course_bloc' => ['required', 'in:A,B,C,D,E,F'],
'course_id' => ['required', 'exists:courses,id'],
'year' => ['required', 'in:1st,2nd,3rd,4th,5th'],
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
Expand All @@ -74,7 +74,7 @@ protected function create(array $data)
'first_name' => $data['first_name'],
'last_name' => $data['last_name'],
'phone_number' => $data['phone_number'],
'course_bloc' => $data['course_bloc'], // Updated from 'block' to 'course_bloc'
'course_bloc' => $data['course_bloc'],
'course_id' => $data['course_id'],
'year' => $data['year'],
'email' => $data['email'],
Expand Down

0 comments on commit 41a9907

Please sign in to comment.