Only the post author will be able to see
delete
and
edit
links
@if (!Auth::guest())
    @if (Auth::user()->id == $post->user_id)
        <!-- delete and edit links -->
    @endif
@endif
by Valeri Tandilashvili
4 years ago
Laravel
auth
Laravel From Scratch
1
Pro tip: use ```triple backticks around text``` to write in code fences