How to check if a user is logged in, inside a blade file?

October 26, 2018

You can use the @auth directive.

@auth
             Hello, logged in user!
@endauth

Related: @guest to check if user is a guest (not logged in)

@guest
            Hello guest, do you want to register?
@endguest