mercredi 2 octobre 2019

How to pass id in update route of resource controller?

Current code

<form action="" id="edit-sub-admin" method="POST" enctype="multipart/form-data">
</form>

Current Output

<form action="http://localhost:8000/admin/sub-admin" id="edit-sub-admin" method="POST" enctype="multipart/form-data">
</form>

Expected Output

<form action="http://localhost:8000/admin/sub-admin/1" id="edit-sub-admin" method="POST" enctype="multipart/form-data">
</form>

Can anyone help me out ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire