We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b03241 commit 1efc4b6Copy full SHA for 1efc4b6
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