AI work in a Laravel app often runs inside queued jobs and the scheduler. AgentPing has a first-party package that captures each run, so cost, missed runs and quality are visible without leaving the framework.
AI inside a Laravel queue or schedule fails the same quiet way: a job stops being dispatched, a scheduled command silently no-ops, or token spend creeps inside a job no one is watching. Laravel logs the exception you do throw, not the run that simply did not happen.
Wrap AI work inside a job or scheduled command. The package flushes on the job boundary, so a long-running worker still reports each run, and a job that stops dispatching can raise a missed-run alert.
composer require agentping/laravel
use AgentPing\Laravel\Facades\AgentPing;
// Inside a queued job or scheduled command:
AgentPing::run('nightly-digest', ['customer_id' => 'acme-corp'], function () use ($ticket) {
return $assistant->handle($ticket);
});
Full setup, environment variables and options are in the Laravel SDK docs.
Send one run from Laravel and see cost, status and latency. Then add an alert for cost spikes or missed runs.
Spend, cost attribution → Pulse, live monitoring → Verify, quality scoring →