mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.22k stars 212 forks source link

add enum check when fetching values from where statements, fixes #426 #427

Closed alexhampu closed 2 years ago

alexhampu commented 2 years ago

To allow enum values in queries, I have added an enum check in getValuesFromWhere.

If the enum is a backed enum, we return it's value, otherwise we return it's name.

This fixes issue #426