Community Feed

@auth
@csrf Publish @endauth @foreach ($posts as $post)

{{ $post->user->name }} | {{ $post->created_at->diffForHumans() }}

@if ($post->title)

{{ $post->title }}

@endif

{{ $post->body }}

@auth @if ($post->user_id === auth()->id()) @endif
@csrf Comment @endauth @foreach ($post->comments as $comment)

{{ $comment->user->name }}

{{ $comment->body }}

@endforeach
@endforeach {{ $posts->links() }}