为什么要用 @guest
@guest可以改为
@if(Auth::check())
...
@else
...
@endif
第一个教程用的是Auth::check(),这边改为guest,可能是新的知识点,但是我还是觉得用Auth::check()更好点
推荐文章: