Skip to content

Commit a3d61ca

Browse files
Quezlerdriesvints
andauthored
[3.x] Wrap login link in app.stub with a route check (#177)
* Update app.stub * Update app.stub Co-authored-by: Dries Vints <[email protected]>
1 parent 408de4c commit a3d61ca

File tree

1 file changed

+6
-3
lines changed
  • src/Auth/bootstrap-stubs/layouts

1 file changed

+6
-3
lines changed

Diff for: src/Auth/bootstrap-stubs/layouts/app.stub

+6-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
<ul class="navbar-nav ml-auto">
4141
<!-- Authentication Links -->
4242
@guest
43-
<li class="nav-item">
44-
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
45-
</li>
43+
@if (Route::has('login'))
44+
<li class="nav-item">
45+
<a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
46+
</li>
47+
@endif
48+
4649
@if (Route::has('register'))
4750
<li class="nav-item">
4851
<a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>

0 commit comments

Comments
 (0)