I'm trying to get username from view using:
Auth::user()->name
and I'm getting
Trying to get property of non-object
because Auth::user() is NULL. How is this possible? The navbar laravel generates uses the same and it works there.
EDIT: It seems that I can't even get the auth user from the Controller.
Auth::guard('admin')->check(); //true
Auth::user(); //null
Any ideas?