Hello community,
I have a simple code:
$fulldays = $cache->get('fulldays', 60, function() {
$firstDayOfWeek = strtotime("monday -1 week");
$value = serviceGetFullDaysOld($firstDayOfWeek,21); // get full data from this monday for 21 days
bd($value); //! First DUMP
return $value;
});
bd($cache->get('fulldays')); //! Second DUMP
So two dumps in the code.
Structure of dumped data is quite the same, but second dump (from cache) is missing data from attribute Activities:
Am I missing something?