Hello, I'm trying to redirect not logged in users to the login page with
if(!Auth::check()) { return Redirect::to('/user/login'); }
but it allways redirects me to /login. Why is that?
Are you using L4 or L5? Seems like a roue filter or middleware is the problem..
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community