Creo que termine con el admin del post

This commit is contained in:
Daniel Cortés
2019-06-23 20:12:37 -04:00
parent 8753ad62e7
commit 08f6e9a0ab
8 changed files with 82 additions and 12 deletions

View File

@@ -21,8 +21,11 @@
<td>{{$post->title}}</td>
<td>{{$post->created_at->format('Y-m-d')}}</td>
<td class="controls">
<a href="#">edit</a>
<a href="#">delete</a>
<a href="{{ route('admin.post.edit', ['post' => $post->id]) }}">edit</a>
<form action={{ route('admin.post.delete', ['post' => $post->id]) }} method="post">
@csrf
<input type="submit" value="delete"/>
</form>
</td>
</tr>
@endforeach