How to check in a Laravel blade if a user is authenticated or a guest

Use the following blade directive to see if a Laravel user is authenticated:

   // The user is authenticated...

To see if it’s a guest login:

   // The user is not authenticated...



Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top