mikebronner / laravel-model-caching

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

Fix: Handle of DateTime objects in whereIn and whereBetween #466

Open roncodes opened 2 months ago

roncodes commented 2 months ago

Currently the CacheKey breaks when a DateTime instance is provided in where clauses like whereIn, whereBetween, this PR makes changes to getCurrentBinding and processEnum to handle DateTime instances when they are passed to where values array

mikebronner commented 2 months ago

@roncodes Thanks for the PR! I will review and merge this soon.