Multiple authentication in Laravel (superadmin, admin, editor, user etc...)
Could anyone suggest me the working flow chart for how multiple users can register in your web or log in through one single form?
Or
Should I have to create a different table for Admin, editor, manager, user?
How can I register these multiple users?
I know we can achieve this putting a dropdown in the register page with some status...But I don't want to use this technique..can anyone suggest me best way?
Allow to register user with role user. Because you don't want to have option that you can register as admin or superadmin in your app and then somebody destroy your app.
So just admin or superadmin could set role to another user.
@michaloravec Okk admin or super admin can't register. but what about other user.
Suppose think a scenario like. You want to create a job board, where there are some role you want to directly register like think about as job seeking or job post. Then in this case what would you suggest?
suppose one peson is job seeker, and register. But one other person is job post then in this scenario what would I have to do?
@michaloravec but role is internal part where admin can easily assign to role any random user.
Here I'm talking about register some other type of user and then login with a single laravel login page.