Support the ongoing development of Laravel.io →
posted 7 years ago
Forms
Last updated 2 years 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 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

pravietis pravietis Joined 18 Feb 2017

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.

© 2024 Laravel.io - All rights reserved.