Articles AI
TAG ARCHIVE

Everything on AI.

14 articles tagged AI, sorted newest first.

laravel

Provider Fallback and Failover with the Laravel AI SDK

A single LLM provider is a single point of failure. Here's how to fail over to a backup provider with the Laravel AI SDK without rewriting a line of prompt code.

7 min read
laravel

Laravel AI SDK Structured Output — JSON Schema Enforcement for LLM Responses

Stop parsing markdown fences and stripping prose out of LLM replies. The Laravel AI SDK ships a HasStructuredOutput contract that forces the model to return JSON matching the schema you describe in PHP — and the same agent works across every supported provider.

9 min read
ai

Stream Prism AI Responses Token-by-Token into Livewire with wire:stream

A ChatGPT-style chat UI in Laravel without writing a line of JavaScript, without WebSockets, without a separate Node process. Prism streams the tokens, Livewire's wire:stream paints them, you write the bubble.

11 min read
laravel

Trace Every LLM Call: Langfuse Observability for Prism in Laravel

Prism gives you the LLM API; Langfuse gives you the receipts. Wire them together with one env var and trace every prompt, token, and tool call in twenty minutes.

8 min read
laravel

Production AI Agents in Laravel: Reliable Loops with Prism and Laravel Workflow

A production-grade playbook for Laravel AI agents: verifier loops, idempotent tools, durable workflow state, Langfuse tracing, and evaluating agent quality in CI.

18 min read
laravel

Laravel 13 whereVectorSimilarTo(): Native Semantic Search in the Query Builder

Laravel 13's whereVectorSimilarTo() turns the query builder into a vector store. Plain strings in, ranked results out: no manual embedding pipeline.

9 min read
laravel

Building a RAG Pipeline with Laravel AI SDK and pgvector

Build a complete retrieval-augmented generation pipeline in Laravel: from embedding documents and storing vectors in pgvector to generating grounded answers with the AI SDK.

9 min read
laravel

Laravel Boost MCP: Let AI Agents Understand Your Codebase

AI coding assistants stumble on Laravel's magic methods and facades. Boost is a local MCP server that gives them structured context so they stop guessing.

6 min read
laravel

Laravel MCP Server: Expose Your App to AI Clients in 15 Minutes

The laravel/mcp package turns your Laravel app into an MCP server with a few artisan commands: no Node, no Python, just familiar middleware and routing.

6 min read
laravel

Laravel Prism Tool Calling: Build AI Agents That Actually Do Things

Prism's tool calling turns a text-generating LLM into an agent that can actually *do* things: query your database, hit an external API, or dispatch a queued job.

7 min read
laravel

Upgrading From Laravel 12 to Laravel 13: The Practical Guide

The Laravel 13 upgrade is mostly painless: but three config areas will silently change how your app behaves if you skip them. Here's what actually changed and what's worth adopting.

7 min read
laravel

The Complete Guide to the Laravel AI SDK in Laravel 13

Laravel 13 ships a first-party AI SDK that replaces the patchwork of vendor SDKs and community packages. Here's how to use every capability: agents, streaming, structured output, tools, embeddings and RAG: in one working project.

17 min read
laravel

Getting Started With Laravel Prism: Add AI to Any Laravel App in Minutes

Prism gives you a provider-agnostic fluent interface for OpenAI, Anthropic, Ollama, and more inside any Laravel app. Here's how to go from zero to your first AI response.

4 min read
devops

Building an Automated Bug-Fixing Pipeline with Claude Cowork

A Claude Cowork scheduled task that reads Sentry errors, triages them via Linear, implements fixes in your Laravel codebase, and opens a GitHub PR: without you lifting a finger until review.

8 min read