Browse Source

Change hardcoded urls to named routes

This makes the links consistent with the ones in https://github.com/laravel/framework/blob/5.4/src/Illuminate/Auth/Console/stubs/make/views/layouts/app.stub
balping 6 years ago
parent
commit
03c2387226
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