Search code examples
laravelauthenticationregistrationmultiple-users

How do you create multiple registration in laravel


I'm using laravel 6 and I want to create an app with two different users. One user is a user registering on the app as an individual while the other user is a user registering on behalf of a company/organization. For an individual user, firstname, lastname, email and password fields are required while for the company/organization, the companyname, email and password are required. I would like to have two registration forms to register the two types of users. I have searched for a similar question but the one I found on this platform wasn't answered. Kindly help.


Solution

  • Seems to me that this tutorial could be what you're looking for: https://laravelarticle.com/laravel-multi-authentication

    It creates authentication system for two user groups - regular and admin users.