Browse Source

Add auth directive

Ahmed-Te7a 6 years ago
parent
commit
71d38b044d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/views/welcome.blade.php

+ 2 - 2
resources/views/welcome.blade.php

@@ -68,12 +68,12 @@
         <div class="flex-center position-ref full-height">
             @if (Route::has('login'))
                 <div class="top-right links">
-                    @if (Auth::check())
+                    @auth
                         <a href="{{ url('/home') }}">Home</a>
                     @else
                         <a href="{{ route('login') }}">Login</a>
                         <a href="{{ route('register') }}">Register</a>
-                    @endif
+                    @endauth
                 </div>
             @endif