#48 - postgreSQL db

This commit is contained in:
Adrian Hopek
2022-03-03 11:28:21 +01:00
parent d825dd727f
commit 98a93cb45f
5 changed files with 34 additions and 37 deletions

View File

@@ -75,9 +75,9 @@ class User extends Authenticatable
}
return $query
->where("first_name", "LIKE", "%{$text}%")
->orWhere("last_name", "LIKE", "%{$text}%")
->orWhere("email", "LIKE", "%{$text}%");
->where("first_name", "ILIKE", $text)
->orWhere("last_name", "ILIKE", $text)
->orWhere("email", "ILIKE", $text);
}
public function saveAvatar(string $path): void