protected function setValue() { $this->value = old($this->name); if (empty($this->value) and $this->model) { $this->value = $this->model->{$this->name}; } return $this; }