I am using Laravels normal authentication functionality with RegisterController
and the default views that are included. I have modified the RegisterController@create
method to create a related model called Home
to the User
. Although a Home
can have several User
relations.
After signup, the User
automatically have a Home
related to them. The user should now be able to invite new users to join their Home
. All the logic around the invites are solved, but I was wondering what the best solution for registering the invited user is.
Currently I have created a InviteController
with a acceptInvite
method that registers the new User
related to the existing Home
. But I really want to reuse the RegisterController@create
method instead of having to maintain two registration processes.
Any ideas?