News

Laravel Introduces Official AI Documentation

Published
Laravel Introduces Official AI Documentation image

Laravel has published a new AI Assisted Development section in the Laravel 12.x documentation, providing first-party guidance on using AI tools effectively within Laravel applications.

In a recent thread, Taylor explained why Laravel's opinionated design makes it a strong fit for AI-assisted development. Laravel's conventions remove ambiguity across the entire stack. Controllers, jobs, mail, queues, caching, scheduling, and broadcasting all follow well-defined patterns, allowing AI agents to stop guessing and start producing clean, human-readable code.

He also emphasized that these opinions eliminate debates around structure and tooling, helping teams focus on building instead of configuration. At the same time, Laravel avoids vendor lock-in by remaining flexible. Developers can choose S3 or Cloudflare R2 for storage, use Laravel’s built-in authentication backed by standard databases, and pair the framework with React, Vue, Svelte, or Inertia on the frontend.

His core point is that AI agents thrive in environments with strong, consistent conventions. Because Laravel clearly defines where things belong and how they should work, AI-generated code stays organized, scalable, and aligned with real-world Laravel applications, even as projects grow in size or complexity.

The new documentation formalizes how developers can integrate AI agents into their workflow while preserving Laravel’s conventions and best practices. It also introduces Laravel Boost as the foundation for AI-aware development.

Laravel Boost and MCP Integration

Laravel Boost exposes a set of specialized tools that AI agents can use to understand and interact with an application, including:

  • Inspecting application configuration, versions, and installed packages
  • Exploring routes, database schemas, and migrations
  • Running read-only database queries
  • Searching Laravel and ecosystem documentation by version
  • Analyzing logs and available Artisan commands
  • Executing code safely via Tinker

This turns general-purpose AI assistants into context-aware Laravel helpers rather than generic code generators.

AI Guidelines and Documentation Search

The new docs introduce AI Guidelines, which define how AI tools should write Laravel code. These guidelines are composable and version-aware, with built-in support for popular ecosystem tools such as Livewire, Inertia, Pest, PHPUnit, Tailwind CSS, and more.

Boost also includes a documentation search API backed by a large, indexed dataset of Laravel ecosystem documentation, helping AI agents avoid outdated or incorrect suggestions.

IDE and Tooling Support

The documentation outlines how Boost integrates with MCP-compatible tools and IDEs, including Claude Code, Cursor, VS Code, PhpStorm, and Gemini, enabling real-time AI assistance directly inside the editor.

Also released in the past week is a Laravel Gets a Claude Code Simplifier Plugin that you should check out if you are using Claude.

Why It Matters

With these new docs, Laravel is making AI-assisted development a first-class concern. Rather than relying on ad-hoc prompts, Laravel now provides structured tooling and guidance that keeps AI output aligned with the framework's philosophy.

The new AI documentation is available now in the Laravel 12.x docs.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Validate and Convert HEIC Images in Laravel image

Validate and Convert HEIC Images in Laravel

Read article
Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues image

Saga Lara Flow: Durable Workflows and Compensating Transactions on Laravel Queues

Read article
Reject Unexpected Array Keys with Laravel Validation image

Reject Unexpected Array Keys with Laravel Validation

Read article
Major performance improvements & security patches for Filament v4.12 and v5.7! image

Major performance improvements & security patches for Filament v4.12 and v5.7!

Read article
Laravel Boost Project Rules: Teach Agents Your Conventions image

Laravel Boost Project Rules: Teach Agents Your Conventions

Read article
Extract an Image's Dominant Color in Laravel image

Extract an Image's Dominant Color in Laravel

Read article