How to write form markup in Laravel4

萝らか妹 提交于 2019-12-11 20:25:12

问题


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')) }}


来源:https://stackoverflow.com/questions/20120553/how-to-write-form-markup-in-laravel4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!