Create api for user on Pterodactyl
Jul 14, 2025 · 1 min read · In ApiKeyController add:
public function storeforuser(StoreApiKeyRequest $request, int $userId): array
{
$user = User::find($userId);
if (!$user) {
throw new DisplayException('User not found.');
}
if...