Fixing Product buttons action

It were pointing to /product/id but needs to point to /product.
This commit is contained in:
Bruno F. Fontes 2018-09-13 21:16:57 -03:00
parent 3469924cdf
commit ff9960be65

View File

@ -4,17 +4,17 @@
<!-- EDIT BUTTON --> <!-- EDIT BUTTON -->
@if ($product->user_id == \Auth::id()) @if ($product->user_id == \Auth::id())
<form action="/product/{{$product->id}}" method="POST"> <form action="/product" method="POST">
@method('PATCH') @method('PATCH')
<button type="button" class="btn-sm btn-secondary mr-1">Edit</button> <button type="submit" class="btn-sm btn-secondary mr-1">Edit</button>
</form> </form>
@endif @endif
<!-- DELETE BUTTON --> <!-- DELETE BUTTON -->
<form action="/product/{{$product->id}}" method="POST"> <form action="/product" method="POST">
@method('DELETE') @method('DELETE')
<button type="button" class="btn-sm btn-danger">Delete</button> <button type="submit" class="btn-sm btn-danger">Delete</button>
</form> </form>