Support the ongoing development of Laravel.io →
posted 8 years ago
Authentication
Last updated 2 years ago.
0

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.

0

astroanu I don't use laravel auth system and 'User' table. Everything is manually. Please watch this video

0

Not sure why you are trying to return something from the constructor. Looks more like something you would want a middleware for.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Saeed saeed Joined 1 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.