Se lee mejor ahora
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user