Skip to content

Releases: willvincent/laravel-unique

1.2

14 Mar 03:59
c0709ca

Choose a tag to compare

Bug fix

  • Constraint fields were being wrongly applied in one of the exists() checks.

1.1

14 Mar 02:51

Choose a tag to compare

1.1

Feature Addition

  • Option to trim name values before checking uniqueness
    This has the happy side effect of also trimming already unique values of leading/trailing whitespace too

1.0

12 Mar 07:37
aa99614

Choose a tag to compare

1.0

Initial release 🎉

All basic functionality is in place and fully tested.

You can enforce uniqueness of a model field within the context of other field values, for example to ensure that within a given team or client context (determined by the team_id or client_id field) every "project" is uniquely named by appending a suffix in the case of duplicate values.

The suffix pattern is configurable, or can use a totally custom generator.