Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Uniquewith Validator Laravel Package

felixkiss/uniquewith-validator

Laravel validation rule for uniqueness across multiple columns. The unique_with rule extends Laravel's built-in unique validator, letting you require combinations such as company_id and email to be unique together, with support for ignoring IDs, extra where clauses, and custom column names.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature delivery: Enables features that require uniqueness within a scope—per-tenant emails/usernames, org-scoped invite codes, vendor-scoped SKUs, resource-scoped booking slots, or team-scoped membership roles—without inventing custom validation logic.
  • Roadmap sequencing: Lets us prioritize multi-tenant or account-scoped workflows earlier when the underlying schema uses composite unique indexes.
  • Build vs. buy: Strong candidate to adopt rather than build: MIT-licensed, narrow scope, low integration cost, and replaces a small but easy-to-get-wrong custom Laravel validator.
  • Data quality: Moves composite uniqueness enforcement into validation, improving user-facing errors and reducing duplicate rows that later require cleanup or support effort.
  • Use cases: Tenant-isolated user registration, organization-specific slugs, per-store product identifiers, per-project task keys, per-resource reservations, and other “unique only within this parent” constraints.

When to Consider This Package

  • Consider it when the product runs on a supported Laravel/PHP version and already has—or is about to add—composite unique database indexes that need matching validation.
  • It fits teams that want a small, focused Composer dependency instead of maintaining a custom Rule object for every combined uniqueness case.
  • Adopt when consistent validation messages and fast implementation matter more than owning every line of validation code.
  • Look elsewhere if the package is not maintained for our Laravel version, if dependency/security policy requires first-party or vendor-supported packages, or if uniqueness rules are highly conditional, cross-service, or require complex soft-delete/versioning behavior.
  • With a low opportunity score, treat it as a tactical productivity package rather than a strategic platform bet; if only one or two validations need it, a small custom rule may be simpler than adding a dependency.

How to Pitch It (Stakeholders)

  • Executives: This is a low-cost, MIT-licensed utility that helps ship scoped-uniqueness features faster while reducing duplicate-data risk. It is not a platform differentiator, but it removes avoidable engineering work in common multi-tenant and account-scoped workflows.
  • Engineering: It provides a Laravel validation rule for combined unique indexes, reducing custom validator code and standardizing error handling. We should verify Laravel/PHP compatibility and maintenance status, then adopt it where composite uniqueness already exists in the schema.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator