Laravel Tutorials

Decide with Jev: Turn AI Answers into Decisions with PHP Rules

Published

https://youtu.be/YZkn3Tv4A_k

Episode 3 of Decide with Jev is out. It runs about seven minutes.

Jev can now answer three questions about a draft. But the model should not pick what the app does next. Our code should.

In this episode, we write a small PHP class called PreflightPolicy. It reads Jev's answers and gives back one label: ready for editor, revise, or needs review. None of these labels publish a draft. Even the best draft still goes to a person.

The video also shows:

  • why a missing answer is not the same as a "no"
  • why a confidence of zero and no confidence at all take different paths
  • the two numbers a draft has to reach, 0.85 and 1.6, and why they are a starting point for this course and not a rule for every app
  • why the order of the checks matters
  • what "ready" means, and what it does not

At the end, we try an example number in Tinkerwell. You can watch the answer flip when the bar moves.

The code is on the episode-3 branch of the Decide with Jev repository. You can watch the whole series in the playlist.

Harris Raftopoulos photo

Senior Software Engineer • Staff & Educator @ Laravel News • Co-organizer @ Laravel Greece Meetup

Sponsored

acquaintsoft logo
Acquaint Softtech

Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Visit Acquaint Softtech

The latest

View all →
PhpStorm 2026.3 Adds an Agent Workspace and PHP 8.6 Support image

PhpStorm 2026.3 Adds an Agent Workspace and PHP 8.6 Support

Read article
Insert Middleware Before or After Existing Laravel Middleware image

Insert Middleware Before or After Existing Laravel Middleware

Read article
Laravel Herd 2: Coding Agents, Workspaces, and Cloud Deploys image

Laravel Herd 2: Coding Agents, Workspaces, and Cloud Deploys

Read article
Strict Request Input Casting in Laravel image

Strict Request Input Casting in Laravel

Read article
Prevent Duplicate File Uploads With Laravel Storage Dedupler image

Prevent Duplicate File Uploads With Laravel Storage Dedupler

Read article
Slow Job Alerts and Replica Commit IDs in Laravel 13.40 image

Slow Job Alerts and Replica Commit IDs in Laravel 13.40

Read article