felixkiss / uniquewith-validator

Custom Laravel Validator for combined unique indexes
MIT License
389 stars 129 forks source link

Using that validation rule with renamed fileds #106

Open fatenfalfoul opened 5 years ago

fatenfalfoul commented 5 years ago

Hello i can't use that validation plugin "unique_with" when I have different fields from those on my database. For example in my database table I have: account_id and code_name but in my html form I have two fields to fil in so I named them to account, tb1 and in the other side I choose account2 and code_name. ==> I must validate each couple of these using unique_with rule. The problem is in the different fields name from the database. Please I'm blocked from fexw days and I need a help. Thanks a lot for your time