lundi 3 avril 2017

Laravel: How to use destroy with html forms

So since the form helpers arent included in laravel anymore. How do we call for a delete method with regular html forms? I can't find nothing about this, every example uses the form helpers..

thanks

Edit: It works using this:

<input name="_method" type="hidden" value="DELETE">

However, a little bit of explanation would be nice.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ouLIfo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire