How to check if user is connected in view laravel

how to check if user is logged in directly in the view with blade ? I know that i can use this in controller:

PHP

Auth::check()

Answer

PHP

@if (Auth::check())
  I'm connected
@endif

Leave a Reply

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