Add auth directive

This commit is contained in:
Ahmed-Te7a 2017-07-25 20:26:13 +02:00
parent 166d25b726
commit 71d38b044d
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