You will need to:
- Duplicate the Registration Form. They can be similar, except each will POST to a different Route.
- You can leave the default Routes to take care of the Teacher, for example. Next you will need 2 additional Route for the Student, like:
Route::get('/student_register', 'Auth\StudentRegistrationController@showRegistrationForm')->name('registerStudent');
Route::post('/student_register', 'Auth\StudentRegistrationController@create')->name('createStudent');
Now on this new Controller, you can basically copy-paste what you have on your RegisterController, except here you will add the data for your Student, not the Teacher.
- Finally, you will probably need something to differentiate them, so on your
usersTable, you will need to add auser_typewhich will beteacherorstudent, and will be set during the Registration process