laravel-multiauth icon indicating copy to clipboard operation
laravel-multiauth copied to clipboard

Trying to declare a third authentication guard

Open jsrosas opened this issue 8 years ago • 1 comments

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.

jsrosas avatar Jun 22 '16 21:06 jsrosas

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

imrealashu avatar Jun 23 '16 13:06 imrealashu