Skip to content

Commit 4929781

Browse files
committed
Merge pull request laravel#3282 from mathewhany/master
Update app.blade.php
2 parents 78e24ac + 92510f7 commit 4929781

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

resources/views/app.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>Laravel</title>
88

9-
<link href="/css/app.css" rel="stylesheet">
9+
<link href="{{ asset('/css/app.css') }}" rel="stylesheet">
1010

1111
<!-- Fonts -->
1212
<link href='//fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
@@ -38,13 +38,13 @@
3838

3939
<ul class="nav navbar-nav navbar-right">
4040
@if (Auth::guest())
41-
<li><a href="/auth/login">Login</a></li>
42-
<li><a href="/auth/register">Register</a></li>
41+
<li><a href="{{ url('/auth/login') }}">Login</a></li>
42+
<li><a href="{{ url('/auth/register') }}">Register</a></li>
4343
@else
4444
<li class="dropdown">
4545
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ Auth::user()->name }} <span class="caret"></span></a>
4646
<ul class="dropdown-menu" role="menu">
47-
<li><a href="/auth/logout">Logout</a></li>
47+
<li><a href="{{ url('/auth/logout') }}">Logout</a></li>
4848
</ul>
4949
</li>
5050
@endif

resources/views/auth/login.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
@endif
2020

21-
<form class="form-horizontal" role="form" method="POST" action="/auth/login">
21+
<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/login') }}">
2222
<input type="hidden" name="_token" value="{{ csrf_token() }}">
2323

2424
<div class="form-group">
@@ -49,7 +49,7 @@
4949
<div class="col-md-6 col-md-offset-4">
5050
<button type="submit" class="btn btn-primary">Login</button>
5151

52-
<a class="btn btn-link" href="/password/email">Forgot Your Password?</a>
52+
<a class="btn btn-link" href="{{ url('/password/email') }}">Forgot Your Password?</a>
5353
</div>
5454
</div>
5555
</form>

resources/views/auth/password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
@endif
2626

27-
<form class="form-horizontal" role="form" method="POST" action="/password/email">
27+
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/email') }}">
2828
<input type="hidden" name="_token" value="{{ csrf_token() }}">
2929

3030
<div class="form-group">

resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
@endif
2020

21-
<form class="form-horizontal" role="form" method="POST" action="/auth/register">
21+
<form class="form-horizontal" role="form" method="POST" action="{{ url('/auth/register') }}">
2222
<input type="hidden" name="_token" value="{{ csrf_token() }}">
2323

2424
<div class="form-group">

resources/views/auth/reset.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</div>
1919
@endif
2020

21-
<form class="form-horizontal" role="form" method="POST" action="/password/reset">
21+
<form class="form-horizontal" role="form" method="POST" action="{{ url('/password/reset') }}">
2222
<input type="hidden" name="_token" value="{{ csrf_token() }}">
2323
<input type="hidden" name="token" value="{{ $token }}">
2424

0 commit comments

Comments
 (0)