lundi 9 septembre 2019

Form not routing to named route Laravel 5.8

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="" 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');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire