Se lee mejor ahora

This commit is contained in:
Daniel Cortés
2019-06-23 00:39:24 -04:00
parent 4d287d9b69
commit 61cd63b265
6 changed files with 15 additions and 16 deletions

View File

@@ -2,10 +2,11 @@
@section('content')
<div class="container">
<h1>Archive</h1>
<ul>
@foreach($posts as $post)
<li class="post-title">
<a href="{{ route('blog.show', $post->id) }}">{{$post->title}}</a> <span>{{$post->created_at->diffForHumans()}}</span>
<li>
<a href="{{ route('blog.show', $post->id) }}">{{$post->title}}</a> <span>({{$post->created_at->format('Y-m-d')}})</span>
</li>
@endforeach
</ul>