Browse Source

Merge pull request #4347 from balping/patch-1

Change hardcoded urls to named routes
Taylor Otwell 6 years ago
parent
commit
e4de035371
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/views/welcome.blade.php

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

@@ -71,8 +71,8 @@
                     @if (Auth::check())
                         <a href="{{ url('/home') }}">Home</a>
                     @else
-                        <a href="{{ url('/login') }}">Login</a>
-                        <a href="{{ url('/register') }}">Register</a>
+                        <a href="{{ route('login') }}">Login</a>
+                        <a href="{{ route('register') }}">Register</a>
                     @endif
                 </div>
             @endif