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

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
Email Sending and Testing for Laravel in One Account image

Email Sending and Testing for Laravel in One Account

Read article
Decide with Jev: Tie Every AI Check to the Exact Draft image

Decide with Jev: Tie Every AI Check to the Exact Draft

Read article
PIE 1.5 Changes PHP Extension Installs in CI image

PIE 1.5 Changes PHP Extension Installs in CI

Read article
Delete Expired Sessions in Laravel With a Scheduled Command image

Delete Expired Sessions in Laravel With a Scheduled Command

Read article
Pollora: Run WordPress Inside a Laravel Application image

Pollora: Run WordPress Inside a Laravel Application

Read article
Scheduled Session Garbage Collection in Laravel 13.39 image

Scheduled Session Garbage Collection in Laravel 13.39

Read article