Closed jayprakashji closed 5 years ago
Thanks for submitting this. I will take a look, probably later today. :)
@jayprakashji I went ahead and fixed this as the root of the cause, instead of updating the makeCacheKey()
method and added a test case for it. Thanks again!
With Eloquent you can do both of these: Model::where('id', $id)->get(['column']) Model::where('id', $id)->get('column')
Builder is converting it. https://github.com/laravel/framework/blob/5.8/src/Illuminate/Database/Query/Builder.php#L2117
But makeCacheKey() is expecting array.
I took the same approach that laravel has, into makeCacheKey().