Just released version
0.2.0 of Masquerade. ?
You will probably be able to update without any issue, but there is one possible breaking change for you:
- Validation rules are now separated by
| instead of
,. Existing fields will be automatically updated when you run the migrate command. If you used
| as an actual character in your validation rules, this can break validation. Access your admin panel and change your rule so
| isn't used for any other purpose than separating the validation rules ! (you can do that before or after upgrading)
composer require flagrow/masquerade:^0.2.0
php flarum migrate
php flarum cache:clear
Or use Bazaar ?
What's in the update ?
Introducing field types. Setting simple fields is now very easy. Out of the box, you get:
Url and checkbox fields use HTML5 field validation so users can type values more easily on mobile devices and the browser gives immediate feedback on invalid values. Links are clickable.
Checkbox offers a choice between yes and no.
Dropdown offers a list of choices in the form of a dropdown.
Checkbox and Dropdown both offer a "no option" option if you don't make them required.
Advanced is a simple text field validated with Laravel rules. If you had existing fields in version 0.1, they are now shown as advanced fields. You can switch their type to one of the new types to get the advantages listed above.
Having issues ?
Something could have slipped under our fingers while testing this (there were a lot of changes to get it working !). Please let us know here or in the GitHub issues if you have any question or issue.