Download the PHP package discover/uniquecombination-validation without Composer
On this page you can find all versions of the php package discover/uniquecombination-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download discover/uniquecombination-validation
More information about discover/uniquecombination-validation
Files in discover/uniquecombination-validation
Package uniquecombination-validation
Short Description unique check validation by any combination value like comma separated value duplicate entry check
License MIT
Informations about the package uniquecombination-validation
Unique Validation with combination For Laravel
This package is for unique validation with comma separated value('1,2,4') or other separated value('a-k-i') of sigle-column duplicate entry check.
Installation
Install the package through Composer. On the command line:
Configuration
Add the following to your providers array in config/app.php:
Usage
Use it like any Validator :
See the Validation documentation of Laravel.
Example
If you have a database table my_table and column which name is column_1 and the value is (25,36,21) already exists.
Your input field name is name_1 and value is (36,21,25).
You want to check unique validation with your database column so that duplicate entry prevent with this comma separated combination:
Example-1
If you have a database table my_table and column which name is name_string and the value is (akash-jhon-jannat) already exists.
Your input field name is name and value is (Jannat-Jhon-akash).
You want to check unique validation with your database column so that duplicate entry prevent with this comma separated combination:
You can also use any separator like('-','+') as your need.
You can use and sort of combination this.
This package is case-sensitive
License
MIT