Support the ongoing development of Laravel.io →
Blade Forms Validation

In Laravel 5, I notice that whenever I have a form in which I wrote in plain HTML, instead of using the Form::open, it is required to have a hidden input field for the token.

<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>" /> And for a form that updates a record, it is required to have <input name="_method" type="hidden" value="PATCH">

Is it correct that I should always have these fields when writing forms using plain HTML? Is there other ways of doing this if I were still to write it in plain HTML?

Last updated 3 years ago.
0

Yes it is correct.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.