Including Item Delete

This commit is contained in:
2018-09-12 21:27:04 -03:00
parent a3fe6f719d
commit 52eda15057
2 changed files with 15 additions and 4 deletions

View File

@@ -12,9 +12,11 @@
<!-- DELETE BUTTON -->
<form action="/item/{{$item->id}}" method="POST">
<form action="/item/" method="POST">
@method('DELETE')
<button type="button" class="btn-sm btn-danger">Delete</button>
{{ csrf_field() }}
<input type="hidden" name="item" value="{{$item->id}}">
<button type="submit" class="btn-sm btn-danger">Delete</button>
</form>