public function getActivateModeAttribute($value) { if (!$value) { return self::ACTIVATE_AUTO; } return $value; }