protected function setUserType($type) { if (static::$user->type !== $type) { static::$user->update(['type' => $type]); } }