Tristan Avrillon
Tristan Avrillon

Reputation: 13

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()

Upvotes: 1

Views: 5377

Answers (1)

Sofiene Djebali
Sofiene Djebali

Reputation: 4508

PHP

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

Upvotes: 10

Related Questions