Laravel 5: send, fix and delete requests without using Form builder

Since there is no form builder class in Laravel 5 (you can add it, I know), how can I make put, patch, and delete queries to match these routes without using any form builder class, just Laravel?

+5
source share
1 answer

You should try adding:

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

into your form. This is what the Laravel 4 form generator does - it just adds a hidden input called _method .

Of course, for the DELETE value in the above example, you can put any other methods

+7
source

Source: https://habr.com/ru/post/1203685/


All Articles