Skip to content

v0.4.0

Choose a tag to compare

@danielebarbaro danielebarbaro released this 19 Oct 10:05
· 23 commits to main since this release
Immutable release. Only release title and notes can be modified.
f9f7581

Field definitions are validated when they are saved.

  • An explicit slug must match /^[a-z0-9][a-z0-9_-]{0,99}$/. Before, a slug containing . or * made the validator skip the type rules, and a slug such as price:greater_than collided with the filter names of another field.
  • An unknown type is refused on create, and on update when it changes. Before, one definition with a typo in its type broke filtersFor(), sortsFor(), getCustomFields() and validation for the whole entity.
composer update plin-code/laravel-custom-fields

Full changes in #8.