Description
Former is a form builder for Laravel that produces form HTML compatible with CSS frameworks, with Bootstrap and Foundation supported at the time the README was written. It uses a fluent method style, so you describe a form in code and Former outputs the markup. A key feature is that it repopulates fields after a validation error and shows the error text next to the affected fields. Former also turns methods it does not recognize into HTML attributes. For example, calling rows(10) sets the rows attribute, and underscores in names become dashes, so data_foo becomes data-foo. If you need an attribute with a real underscore, the README shows a setAttribute fallback. It can be used with Laravel and also stand-alone in other frameworks. You install it with Composer and publish its config files with artisan.…
Highlights
- Fluent form building
- Bootstrap and Foundation markup
- Repopulates fields after validation errors
- Works with Laravel and stand-alone
Ratings & Reviews
No ratings yet
Be the first to rate Former.
People also visit
Simple Form
Forms made easy for Rails! It's tied to a simple DSL, with no opinion on markup
Former FAQ
What is Former?
A form builder for Laravel, and other frameworks, that outputs CSS framework markup from fluent code.
How do I install it?
Install with Composer, then publish the config files with artisan, as the README explains.
Does it show validation errors?
Yes. It repopulates fields after validation errors and renders the error text next to the affected fields.
Which CSS frameworks does it support?
Bootstrap and Foundation, according to the README at the time it was written.
What are the best Former alternatives?
Popular alternatives to Former include Laravel Form Builder, Laravel Form Builder and Forms. See all Former alternatives





