post.blade.php 308 B

12345678910
  1. <div class="blog-post">
  2. <h2 class="blog-post-title">
  3. <a href="/posts/{{ $post->id }}">{{ $post->title }}</a>
  4. </h2>
  5. <p class="blog-post-meta">
  6. {{ $post->created_at->toFormattedDateString() }}
  7. by <a href="#">{{ $post->user->name }}</a>
  8. </p>
  9. {{ $post->body }}
  10. </div>