You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor of Former – the project is now framework agnostic, see installation details
Frameworks names renamed from bootstrap to TwitterBootstrap, zurb to ZurbFoundation and null to Nude
New ZurbFoundation4 framework
The alias is now Former\Facades\Former for everyone : Laravel 3, 4 or raw PHP
The main branch is now master (previously agnostic). It works on Laravel 3 with a composer install but the hardcoded dependencies are still available in the laravel3 branch
Additions
You can now chain methods to actions blocks Former::actions('Hello', 'Mr Bond')->id('foo')->addClass('bar')
You can now chain buttons to actions blocks Former::actions()->large_primary_submit('Submit')
You can now chain live validation rules to fields (example: Former::text('foo')->alpha_dash())
You can now display a single field without control group in any kind of form (Former::text('foo')->raw())
You can now manually open groups via Former::group('label')
You can also create a group that contains raw content (not a field) with Former::group('label')->contents('YourContent'). This will wrap the content in a control class so that your content is aligned with the fields.
Support for select groups
You can now add classes to the group via the ->addGroupClass method
Former::withRules() now also take a Laravel-formatted string of rules (ie. "rule|rule:parameter|rule")
You can now populate on a form-basis with the chained method ->populate on a form opener
Add support for macros with Former::macro($name, $macro())
Add Select->range() method
Former now automatically inserts a token in the form