Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel Blade @auth

//Typical way:
@if(auth()->user())
 // The user is authenticated.
 @endif

//Shorter:

 @auth
 // The user is authenticated.
 @endauth
 
PREVIOUS NEXT
Tagged: #laravel #Blade
ADD COMMENT
Topic
Name
3+6 =