Using enums does not work with query()->firstWhere #39838
Unanswered
ismailnakkar
asked this question in
General
Replies: 1 comment
-
It still does not work in Laravel 9.17, but I have made functionality that proxies the enum so that it is stringable. see https://github.com/henzeb/enumhancer/blob/main/docs/functions.md#backing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version: 8.74.0
PHP Version: 8.1.0
Database Driver & Version: -
Description:
Using enums does not work with query()->firstWhere in DB query builder
Steps To Reproduce:
Use firstWhere with the new enums of php8.1
Beta Was this translation helpful? Give feedback.
All reactions