astrophp/trail
Trail is a Laravel package that adds a simple audit trail to your Eloquent models. It automatically logs create, update, and delete events, capturing who made each change and when. Use it to improve debugging, accountability, and compliance with minimal setup.
ImageFailed, AudioFailed, and TranscriptionFailed events are recorded with their own error and duration on SDK 1.2.2+. This helps PMs prioritize fixes by modality and understand whether failures are isolated calls or tool-level failures.Consider adoption when:
Look elsewhere or defer when:
For executives: This release turns multimodal AI — image generation, voice, and transcription — into measurable product operations. We can see usage, failures, latency, and token-based cost by modality, and export that data for reporting. It reduces the need to build custom AI observability and helps us decide where to invest, price, or fix reliability. The main operational caveat is that every process reading Trail’s tables must be upgraded before these new span types are recorded, and multimodal models need prices configured to avoid Unpriced totals.
For engineering: v0.4.0 extends the existing trace/span model to image, audio, and transcription calls with no new migrations or configuration. Standalone calls become their own traces; calls inside tools become spans under that tool. Failures are captured from SDK 1.2.2+ events, payload text is captured only when enabled, and image/audio bytes are never stored. Plan a coordinated deploy because older versions cannot read the new span types, and add model prices if cost totals matter.
How can I help you explore Laravel packages today?