you are redirecting because the RedirectIfAuthenticated middleware is redirecting you. Also notice $this->middleware($this->guestMiddleware(), ['except' => 'logout']); on your AuthController. So only authenticated users can reach logout route.
the auth controller is using the AuthenticatesAndRegistersUsers trait, which explains the two missing methods in the controller.
Thank you.
I understand that. What i do not understand is - how do i exclude this "register" route for this middle-ware? Or do i have to do this same way as logout? $this->middleware($this->guestMiddleware(), ['except' => 'logout', 'except' => 'register']); ? I try this one out now :-).
This one did cost me much :-) - i think i've figured this one out now.
And thank you very much again!
sixthpack said:
Thank you.
I understand that. What i do not understand is - how do i exclude this "register" route for this middle-ware? Or do i have to do this same way as logout? $this->middleware($this->guestMiddleware(), ['except' => 'logout', 'except' => 'register']); ? I try this one out now :-).
This one did cost me much :-) - i think i've figured this one out now.
And thank you very much again!
I have THE SAME problem can you tell me please how you figured this out? becouse 'except' => 'register' in authcontroller do not work for me ;/ i can pay if someone will help me ;d
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community