Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of custom guards specified in config/auth.php to build multi auth system. #126

Closed
amit-dalal opened this issue Oct 19, 2020 · 6 comments
Assignees

Comments

@amit-dalal
Copy link

In lot of projects we do have multiple user tables based on requirement, so, it is not feasible to have single user table in this scenario. Result is multiple tables in database storing credentials for different roles.

In this case till now we used to specify custom guard in config/auth.php in Laravel for each credential table and use them to build multi-auth system. However, Jetstream is using single guard specified in Fortify.php.

Request: Please provide option to choose guard specified in config/auth.php to create a multiauth system instead of using single guard from fortify.php. At present, we are forced to use only one guard specified in fortify.php to use in application. Please help !!

@redidizzy
Copy link
Contributor

Any news regarding that ?

@driesvints
Copy link
Member

@redidizzy if there hasn't been an update here then no there isn't any news. Anyone's free to send in a PR.

@amit-dalal
Copy link
Author

@driesvints Please take up this feature on priority as this is one of the main requirement which we feel missing in Laravel.

@taylorotwell
Copy link
Member

This is a feature request, not a bug.

@taylorotwell
Copy link
Member

To build your own custom, multi-auth system: https://laravel.com/docs/8.x/authentication#authenticating-users

@koudera1
Copy link

koudera1 commented Dec 21, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants