public function setValueAttribute($value) { $this->attributes['value'] = date('Y-m-d h:m:s', strtotime($value)); }