用户支持登录登出

This commit is contained in:
2022-08-07 13:13:10 +08:00
parent cca0958899
commit d07cad1cd8
15 changed files with 402 additions and 7 deletions

View File

@ -6,5 +6,13 @@
<a class="text-blue-600 underline" href="/comments">节目单查询</a>
<a class="text-blue-600 underline" href="/danmakus">直播弹幕查询</a>
<a class="text-blue-600 underline" href="/programs" title="数据不全,待补充">节目查询</a>
@auth
<a class="text-blue-600 underline" href="/programs/construct">节目建设</a>
<a class="text-blue-600 underline float-right" href="{{ route("logout") }}">登出</a>
<div class="float-right text-cyan-300 mx-2 border bg-blue-600">{{ Auth::user()->name }}</div>
@endauth
@guest
<a class="text-blue-600 underline float-right" href="{{ route("login") }}">登录</a>
@endguest
</div>
</div>