Skip to content

Jev directory

Laravel AI Spam Detector

Opt-in Laravel route middleware and validation rules that classify requests for spam and prompt injection through Laravel AI and TypeSafe Jev. Ships the ValidateRequestWithAi middleware, two field rules, observation mode, and classification events.
Reading time
2 min
Published by
Community
Added
Nov 23, 2026

Highlights

  • Opt-in Laravel route middleware and validation rules for spam and prompt injection detection
  • ValidateRequestWithAi checks request bodies and headers for both categories in one call
  • Flagged middleware requests return an empty HTTP 200 and the handler is not called
  • Requires PHP 8.4+ and Laravel 12 or 13, with Laravel AI ^1.1 installed as a dependency
  • Observation mode keeps classification and events active while letting flagged submissions through

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

YouTube: Kubernetes admission control with a decision model, fail-closed.

Hacker News: SafeDep Gryph plus Jev checks for compromised coding-agent behavior.

2 pointsDetecting Compromised AI Coding Agents with Jev and GryphRead the thread on Hacker News

X: Jev and Laya on security queries

X: Testing Jev for prompt injection

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai