I create 3 auth in laravel 5.2,
Admin -> admin,
Site -> couple, vendor.
And use this code for find Auth in site:
@if(Auth::guard('vendor')->check())
<li><a href="">Vendor profile</a></li>
@endif
@if(Auth::guard('couple')->check())
<li><a href="">couple profile</a></li>
@endif
@if(Auth::guard('couple')->check() != true && Auth::guard('vendor')->check() != true )
<li><a href="">Register</a></li>
<li><a href="">Login</a></li>
@else
<li><a href="">Exit</a></li>
@endif
But this code is error !
How to check vendor Auth and couple Auth in my project?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire