We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b03241 + 1efc4b6 commit 48db425Copy full SHA for 48db425
src/CacheKey.php
@@ -287,7 +287,15 @@ protected function getValuesFromWhere(array $where) : string
287
return implode("_", collect($where["value"])->flatten()->toArray());
288
}
289
290
- return (new Arr)->get($where, "value", "");
+ $value = (new Arr)->get($where, "value", "");
291
+
292
+ if ($value instanceof \BackedEnum) {
293
+ return $value->value;
294
+ } elseif ($value instanceof \UnitEnum) {
295
+ return $value->name;
296
+ }
297
298
+ return $value;
299
300
301
protected function getValuesFromBindings(array $where, string $values) : string
0 commit comments