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

Trying to declare a third authentication guard #1

Open
jsrosas opened this issue Jun 22, 2016 · 1 comment
Open

Trying to declare a third authentication guard #1

jsrosas opened this issue Jun 22, 2016 · 1 comment

Comments

@jsrosas
Copy link

jsrosas commented Jun 22, 2016

Hi @imrealashu, I have used your steps from http://stackoverflow.com/questions/34614753/can-anyone-explain-laravel-5-2-multi-auth-with-example, and I downloaded your repo laravel-multiauth and it worked great, now I have to assign a new table with its own authenticated. So I would have a third auth.
I have followed the steps, I have a Member model with its own MemberAuth folder which contains its AuthController and Password. I set the protected $guard and $redirect to member. I created the middleware ifNotMember and registered it in the Kernel. But when a Member logs in It gets redirected to the /login page. BTW the url for member login is member/login.
If in Authenticate.php I set return redirect()->guest('member'); Then it will go to the member dashboard.
but if that defeats the purpose of the middleware. My MemberController also has the member middleware on the construct function.

@imrealashu
Copy link
Owner

Hey, @jsrosas thank you for writing. Can you show me your codes ?

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

No branches or pull requests

2 participants