vendredi 15 mars 2019

The check to see whether a user is logged in or not is not responding as expected

I'm working on laravel 5.5. I'm checking whether the user is logged in like this :

@if(Auth::check())
//some logic

@else
//somelogic

@endif

But the if/else statement is getting executed twice depending whether the user is logged in or not. Why do you think that's happening? I have tried other ways to check authentication as mentioned here. Still I'm getting the same error.

Aucun commentaire:

Enregistrer un commentaire