This commit is contained in:
James Cole
2016-12-15 13:47:28 +01:00
parent 482688ac3c
commit b58bc97422
7 changed files with 305 additions and 458 deletions

View File

@@ -95,6 +95,7 @@ class CacheProperties
*/
private function md5()
{
$this->md5 = '';
foreach ($this->properties as $property) {
if ($property instanceof Collection || $property instanceof EloquentCollection) {
@@ -108,6 +109,12 @@ class CacheProperties
if (is_object($property)) {
$this->md5 .= $property->__toString();
}
if (is_bool($property) && $property === false) {
$this->md5 .= 'false';
}
if (is_bool($property) && $property === true) {
$this->md5 .= 'true';
}
$this->md5 .= json_encode($property);
}