File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ public function setValidator(Validator $validator): static
4242 public function validate (string $ attribute , mixed $ value , Closure $ fail ): void
4343 {
4444 $ query = DB ::table ($ this ->table )->whereNull ('deleted_at ' );
45- $ query ->where ($ this ->columns [0 ], '== ' , $ value ); //the first column to check
45+ $ query ->where ($ this ->columns [0 ], '= ' , $ value ); //the first column to check
4646 $ translation_string = 'validation.unique_undeleted ' ; //the normal validation string for a single-column check
4747 foreach (array_slice ($ this ->columns , 1 ) as $ column ) {
4848 $ translation_string = 'validation.two_column_unique_undeleted ' ;
49- $ query ->where ($ column , '== ' , $ this ->data [$ column ]);
49+ $ query ->where ($ column , '= ' , $ this ->data [$ column ]);
5050 }
5151
5252 if ($ query ->count () > 0 ) {
You can’t perform that action at this time.
0 commit comments