All notable changes to laravel-unique will be documented in this file.
- Constraint fields were being wrongly applied in one of the exists() checks.
- 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
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.