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?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community