---
title: "Discussion on \"Laravel AI PII & Secret Guardrails: Redacting API Keys & Payment Cards Before Calling LLMs\" | Hashnode"
description: "Discussion on \"Laravel AI PII & Secret Guardrails: Redacting API Keys & Payment Cards Before Calling LLMs\". Asking an LLM to \"ignore secrets\" still leaks API keys and credit cards the millisecond your HTTP request leaves PHP. Here is how to scrub credentials"
url: "https://hashnode.com/posts/laravel-ai-pii-secret-guardrails-redacting-api-keys-payment-cards-before-calling-llms/6b080cf95bf67d596707fb82"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Laravel AI PII & Secret Guardrails: Redacting API Keys & Payment Cards Before Calling LLMs](https://warrenboswell.hashnode.dev/laravel-ai-pii-secret-guardrails-redacting-api-keys-payment-cards-before-calling-llms?utm_source=hashnode&utm_medium=feed)

Asking an LLM to "ignore secrets" still leaks API keys and credit cards the millisecond your HTTP request leaves PHP. Here is how to scrub credentials

Nov 26 · 7 min read · warrenboswell.hashnode.dev  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#ai](https://hashnode.com/tag/ai)
-   [#guardrails](https://hashnode.com/tag/guardrails)

## Written by

[Warren Boswell](https://hashnode.com/@warrenboswell)

@warrenboswell · London, UK

  
[View profile](https://hashnode.com/@warrenboswell)

Senior Laravel &amp; Livewire Developer &amp; Architect | Startup SaaS MVP &amp; AI Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
