Skip to content

Commit c6c0a14

Browse files
committed
Whoops, used PHP's equal signs instead of MySQL's :/
1 parent 9b8768d commit c6c0a14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Rules/UniqueUndeleted.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)