Home > Article > PHP Framework > How to implement laravel input hidden field
Laravel input hidden field implementation method: 1. Find and open the Blade template file; 2. Use the method_field method in the Blade template to create a hidden field. The creation syntax is "{{ method_field('DELETE') }}".
The operating environment of this tutorial: Windows 7 system, Laravel version 5.7, Dell G3 computer.
How to implement laravel input hidden field?
laravel implementation of hidden fields
In the Blade template, we can use the method_field method to create a hidden field.
{{ method_field('DELETE') }}
The code converted into HTML is as follows:
<input type="hidden" name="_method" value="DELETE">
Recommended learning: "laravel video tutorial"
The above is the detailed content of How to implement laravel input hidden field. For more information, please follow other related articles on the PHP Chinese website!