We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17702a2 commit a0e81f8Copy full SHA for a0e81f8
src/GeneratesUuid.php
@@ -122,15 +122,8 @@ public function resolveUuidVersion(): string
122
*/
123
public function scopeWhereUuid($query, $uuid, $uuidColumn = null): Builder
124
{
125
- $uuidColumn = ! is_null($uuidColumn) && in_array($uuidColumn, $this->uuidColumns())
126
- ? $uuidColumn
127
- : $this->uuidColumns()[0];
128
-
129
- $uuid = $this->normaliseUuids($uuid);
130
131
- if ($this->isClassCastable($uuidColumn)) {
132
- $uuid = $this->bytesFromUuid($uuid);
133
- }
+ $uuidColumn = $this->guessUuidColumn($uuidColumn);
+ $uuid = $this->prepareUuid($uuid, $uuidColumn);
134
135
return $query->whereIn(
136
$this->qualifyColumn($uuidColumn),
0 commit comments