Skip to content

Commit c3f0d49

Browse files
committed
add menu items for viewing posts and adding new ones
1 parent e66c4d2 commit c3f0d49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

resources/views/layouts/app.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
<a class="navbar-brand" href="{{ url('/') }}">
2727
{{ config('app.name', 'Laravel') }}
2828
</a>
29+
<a class="nav-link" href="{{ url('/blog') }}">All Posts</a>
30+
@auth
31+
<a class="nav-link" href="{{ url('/admin/blog/post') }}">+ New Post</a>
32+
@endauth
2933
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
3034
<span class="navbar-toggler-icon"></span>
3135
</button>

0 commit comments

Comments
 (0)