public function offsetSet($key, $value) { if (is_null($key)) { $this->items[] = $value; } else { $this->items[$key] = $value; } }
public function getFiels() { $values = new Collection(); foreach ($this->seoModel->getFillable() as $fill) { if (!in_array($fill, ['document_id', 'document_type'])) { $values->offsetSet($fill, null); } } return $values; }