getBuilder()->where('user_id', $user->id) ->where('key_type', ApiKey::TYPE_ACCOUNT) ->get($this->getColumns()); } /** * Delete an account API key from the panel for a specific user. * * @param \Pterodactyl\Models\User $user * @param string $identifier * @return int */ public function deleteAccountKey(User $user, string $identifier): int { return $this->getBuilder()->where('user_id', $user->id) ->where('key_type', ApiKey::TYPE_ACCOUNT) ->where('identifier', $identifier) ->delete(); } }