Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to check using what guard in laravel 8

@if(Auth::guard('admin')->check())
    Hello {{Auth::guard('admin')->user()->name}}
@elseif(Auth::guard('user')->check())
    Hello {{Auth::guard('user')->user()->name}}
@endif
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #guard #laravel
ADD COMMENT
Topic
Name
5+3 =