I know I am doing something very basic here but I can't seem to find the issue. My form isn't routing to its named route.
Am I naming my route
the wrong way?
Form
<form action="{{route('inventory.deduct', 'test')}}" method="post">
@csrf
<div class="modal-body">
Enter number of items to issue for:
<input type="text" name="itemname" id="itemname" class="form-control" readonly>
<input type="text" id="itemid" name="itemid" hidden>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</form>
Route
Route::post('inventory/{id}/deduct', 'InventoryController@deduct')->name('inventory.deduct');