How to write form markup in Laravel4

2019-08-29 01:54发布

问题:

Can you help me to write this form tag in blade sintax:

  <form name="room"  id="1"  method="post"  class="narrow_width">

Thank you!

回答1:

See http://laravel.com/docs/html for the Form syntax and methods.

You can wrap these in Blade tags.

{{ Form::open() }}
{{ Form::text('username') }}

Etc... In your case

{{ Form::open(array('name' => 'room', 'method' => 'post', 'class' => 'narrow_width', id => '1')) }}