if you need to check the user is on session use is_null(Auth::user()) or Auth::guest() no need to set a session variable.
astroanu I don't use laravel auth system and 'User' table. Everything is manually. Please watch this video
Not sure why you are trying to return something from the constructor. Looks more like something you would want a middleware for.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community