public function makeVisible($attributes) { $this->hidden = array_diff($this->hidden, (array) $attributes); if (!empty($this->visible)) { $this->addVisible($attributes); } return $this; }
/** * ModelSnapshot constructor. * * @param Model $model * @param string $event */ protected function __construct(Model $model, $event) { $this->model = $model->makeVisible($model->getHidden()); $this->event = $event; }