Hesto/multi-auth

Why admin automatically be guest after click menu in admin page

Opened this issue · 1 comments

{{ Auth::guard->user()->name}} when i used this i got error Trying to get property of non-object but when i use {{ Auth::guard('admin')->user()->name}} that fine but iam click another menu in admin page that admin session automatically be guest
what wrongs? help

Try the following

{{ Auth::guard()->user()->name }}