Prism Makes AI Feel Laravel Native. The Artisan of the Day is TJ Miller.

Prism Makes AI Feel Laravel Native. The Artisan of the Day is TJ Miller.

Prism Makes AI Feel Laravel Native. The Artisan of the Day is TJ Miller.

When it comes to bridging the gap between Laravel and AI's challenges, TJ Miller is leading the charge.

TJ is the creator of Prism, a Laravel-native routing layer for AI models that makes integrating with AI feel as natural as working with Eloquent. He works with the incredible team at Geocodio and has put his heart into making AI integration accessible to every Laravel developer.

His approach is refreshingly practical: no scary complexity, no vendor lock-in, just clean, Laravel-style code that lets you switch AI providers with a single line change. His energy on stage is infectious: equal parts technical depth and genuine excitement about making developers' lives better.

Like Nuno Maduro, TJ embodies the Laravel philosophy of developer happiness, but for the AI era. Every feature feels like it was built by someone who actually uses Laravel in production.

Prism: Changing How We Think About AI Integration

At Laracon, TJ introduced Prism and showed us that AI integration doesn't have to mean abandoning everything we love about Laravel's elegance and developer experience.

What Prism brings to Laravel:

  • One API for everything: OpenAI, Anthropic, Gemini, XAI, Ollama. Just switch providers by changing a single line. No more maintaining multiple integrations or dealing with different APIs.
  • Blade templates as prompts: Clean, reusable, data-driven prompts that feel natural in Laravel. No more concatenated strings or heredoc nightmares.
  • Structured outputs made simple: Get back proper associative arrays instead of parsing text blobs. Define schemas with required fields and never miss data again.
  • Eloquent-style fluency: Prism::text()->using('openai', 'gpt-4')->withPrompt($prompt)->generate(). It feels like home.
  • Streaming support: Real-time responses with Laravel's event stream response types. Perfect for chat UIs and interactive experiences.
  • Tool integration: Build coding agents and complex workflows. MCP tool compatibility means endless possibilities.
  • Multimodal inputs: You can attach any media (images, documents, or audio) to your AI requests using Laravel's familiar disk system.
  • Testing built-in: Fake AI responses, assert prompts, and test your AI integrations with the same confidence you test everything else.
  • Prism Server: Turn your AI models into OpenAI-compatible APIs. Works with any chat UI or SDK.

TJ ended his talk with gratitude to his contributors and a promise: Prism 1.0 ships in the next few weeks, stable and ready for production.

Your Story Belongs Here

You don't need to have a course, a talk, or a big launch. If Laravel has been part of your journey (a pivot, a side project, a moment of growth), we'd love to hear about it!

Answer Taylor's questions at laravel.com/stories.

We're always looking to feature developers from every corner of the community. Beginners, builders, behind-the-scenes folks. If Laravel helped you do something you're proud of, that's a story worth telling.

Keep reading

Stay connected with the latest Laravel news