Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71d38b0

Browse files
committed
Add auth directive
1 parent 166d25b commit 71d38b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/welcome.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@
6868
<div class="flex-center position-ref full-height">
6969
@if (Route::has('login'))
7070
<div class="top-right links">
71-
@if (Auth::check())
71+
@auth
7272
<a href="{{ url('/home') }}">Home</a>
7373
@else
7474
<a href="{{ route('login') }}">Login</a>
7575
<a href="{{ route('register') }}">Register</a>
76-
@endif
76+
@endauth
7777
</div>
7878
@endif
7979

0 commit comments

Comments
 (0)