/** * Applies a callback to all data in the collection. * * Overriden to load any data that has not yet been loaded. * * @param callback $filter The filter to apply. * @return object This collection instance. */ public function each($filter) { $this->offsetGet(null); return parent::each($filter); }