Form API
Note
The Form API is required to create the bootstrap look and feel for HTML forms in edit page, like:
Basic Idea
We use the concept described by
- http://blog.stidges.com/post/easy-bootstrap-forms-in-laravel,
- and we highly adapted the code from: https://gist.github.com/stidges/1d6e0999fdbd532960e9
This enables the use of the Form classes directly in the blades, like
Functions
Name | Usage | Example |
---|---|---|
Form::open() | open form | Â |
Form::close() | close form | Â |
Form::label() | add label text | Â |
Form::input() | add plain text input field | Â |
Form::select() | create a select box field | Â |
 |  |  |
TODO | Â | Â |
For more information see the file located under: app/extensions/html/FormBuilder.php
Implementation
All the stuff is located under:
app/extensions/html:
HtmlServiceProvider: to register the FormBuilder
FormBuilder: the form builder class
Example: http://blog.stidges.com/post/easy-bootstrap-forms-in-laravel