Browse Source

Added home link to welcome page

Zak Nesler 8 years ago
parent
commit
d0fa3fcba6
1 changed files with 6 additions and 2 deletions
  1. 6 2
      resources/views/welcome.blade.php

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

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