Normally when I check like this (see code below) and the first if is true, the elseif should skipped. In my case it shows both layouts.app and layouts.donor.master what am I not understanding here?
@if(auth()->guard('web')->check())
@extends('layouts.app')
@elseif(auth()->guard('donor')->check())
@extends('layouts.donor.master')
@endif
Aucun commentaire:
Enregistrer un commentaire