Concept
Laravel auth in Blade directive
The Laravel auth blade directive is used to check if a user is authenticated in a Blade view.
Here's an example of how to use it:
@auth <p>Welcome back, {{ auth()->user()->name }}!</p> @else <p>Please log in to continue.</p> @endauth
0
1
Updated 2025-05-27
Tags
Object-Oriented Programming (OOP) Languages
Object-Oriented Programming
Programming Language Paradigms
General programming languages
Computing Sciences