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
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #Blade
ADD COMMENT
Topic
Name
1+6 =