Jev directory
CommunityJev Integrations & Adapters
Jev Moderation for Laravel
Laravel package that adds a Moderatable trait to any Eloquent model, classifying saved content with Jev and routing each item to passed, flagged for human review, or blocked using per-category thresholds.
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- Adds a Moderatable trait and a #[Moderate] attribute naming the fields and policy to check.
- Ships community, chat and strict policy presets with per-category review and block thresholds.
- Runs on Eloquent created and updated events, so jobs, APIs, Livewire and seeders are moderated.
- Append-only history keeps Jev's decision separate from moderator reviews for audit and comparison.
- MIT licensed, headless, and swappable behind a driver contract with a fake for tests.
Questions about this entry
Short answers drawn from the linked project or page.
Run composer require phoenix1331/laravel-jev-moderation, then php artisan jev-moderation:install. The install command publishes the config and the moderation_decisions migration, asks for the mode and default policy, and prints the .env keys to add.
Yes. Get a key at typesafe.ai and add the printed .env keys, then run php artisan jev-moderation:ping to check everything works end to end. The ping command lists models, classifies a sample, and warns when jev-latest is an alias.
By default a save records a pending decision and queues the check once the transaction commits, so a queue worker must be running. Set JEV_MODERATION_SYNC=true to check inline instead, for example before broadcasting a chat message.
Each risky category with a rule is checked against its own review_above and block_above thresholds, not just Jev's top choice, and the strongest action wins. A probability equal to a threshold counts as reaching it, and uncertain_below flags answers where Jev was undecided.
Moderation runs on Eloquent's created and updated events, so saveQuietly(), Model::withoutEvents(), raw inserts and seeders using WithoutModelEvents skip it. Laravel's default DatabaseSeeder uses that trait; remove it or run php artisan jev-moderation:rescan afterwards.
No. The package is headless, with no views and no routes; you use the model API, query scopes and events in your own app. A separate Filament package provides the review queue and calibration widget.
Yes. Call JevModeration::classify($message, 'chat') and check blocked() on the result. That path does not write a decision row, unlike the model events that record every check, report and review.
Reactions & coverage
Posts, threads, and videos about this entry from around the web.
X: Agent Handoff Gate: agents verify what they hand off
X: Jev as an LLM guardrail inside Agentgateway
X: Vercel's fx safety reviewer, measured at 18× faster
Reddit: Early experiments wiring Jev into Pi as a safety layer and model router.
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.