Support the ongoing development of Laravel.io →
Forms
Last updated 2 weeks ago.
0

Just so you know for future reference, you can do the following:

<form action="/comments" method="POST">
    {{ csrf_field() }}
    Name::
    <input type="text" name="name" /><br />
    Comments:<br />
    <textarea name="text"></textarea>

    <!--<input type="hidden" name="_method" value="PUT">-->
    <br />
    <input type="submit" value="Pievienot"/>
</form>

It's a little bit less code and a little simpler imo.

Last updated 4 years ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

pravietis pravietis pravietis Joined 18 Feb 2017

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.