Merge pull request #4350 from Te7a-Houdini/AddAuthDirective

Add auth directive
This commit is contained in:
Taylor Otwell 2017-07-25 22:27:56 -04:00 committed by GitHub
commit 8a50ccb617
1 changed files with 2 additions and 2 deletions

View File

@ -68,12 +68,12 @@
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@if (Auth::check())
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
<a href="{{ route('register') }}">Register</a>
@endif
@endauth
</div>
@endif