Hi, i am tring to make a restful controler but i have some problems with this:
{{ Form::model($client, array('method'=>'PUT', 'route'=>['clients.update', $client->id],'role' => 'form', 'class' => 'form-horizontal')) }}
<form method="POST" action="http://************.net/clients/8" accept-charset="UTF-8" role="form" class="form-horizontal">
I assume you are referring to the fact that the form method is set to POST not PUT?
If so see the red box on http://laravel.com/docs/html#opening-a-form
Oh... Sorry for the thread, now i see that Laravel creates a hidden field with the http request type.
<input name="_method" type="hidden" value="PUT">
I am still new at Laravel
m0j0r1s1ng said:
web browser forms can't do
PUT
Yes, that's why Laravel uses the hidden field method to tell the controller/route what to do.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community