Are there any benefits of using laravel's form and HTML extension packages?
我想大声告诉你
我想大声告诉你 2017-05-16 16:47:43
0
2
627
{!! Form::open(['url' => 'foo/bar']) !!}
{!! Form::close() !!}

As shown in the code, why should we use Form::open to generate a form? Is there any advantage over writing the <form> tag directly?

我想大声告诉你
我想大声告诉你

reply all(2)
Peter_Zhu

Because he will handle part of the content on your behalf, such as preventing cross-site tokens

<input name="_token" type="hidden" value="4P37rt36ym3IyCdTJgqE850iBofqxxZChjtBPeJb">

The previous content was wrong, please correct it:

laravelcollective/html is a plug-in that helps create html and form forms. Use it to better create form forms, use laravel's writing method to create it, and reduce the need to write html code, but one important part of it is Will assist in creating CSRF (Cross Site Request Forgery, cross-site domain request forgery) verification token

黄舟

Automatically add csrf to prevent repeated submissions and make the code more concise

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template