Created
December 30, 2020 08:51
-
-
Save meet263/1e8150391c350277d420033f621979e4 to your computer and use it in GitHub Desktop.
Laravel Validations Guide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. unique:contracts,name,' . $id . ' for checking unique value in db where contracts is tbl name and name is field name. | |
if we want to update same then we have to put id as shown for except that particular entry. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@[email protected]