Skip to content

Commit

Permalink
Change hardcoded urls to named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
balping authored Jul 25, 2017
1 parent e19952f commit 03c2387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03c2387

Please sign in to comment.