Laravel Doctor is a new first-party package announced at Laracon US 2026 that adds a `php artisan doctor` command to run health checks against a Laravel application. It covers environment setup (APP_KEY, PHP version, extensions), Composer dependencies, configuration, database connectivity, cache/queue/session drivers, storage permissions, and security settings. Checks return one of six statuses and the tool can auto-fix many issues with `--fix`. It supports environment-aware logic (local vs. production), custom diagnostics registered by third-party packages, CI-friendly JSON and GitHub Actions output formats, and a special agent-optimized output format for AI coding tools like Claude Code or Cursor. Requires PHP 8.3 and Laravel 12 or 13.
Table of contents
# How It Works# Getting Started# Custom Diagnostics# Output for CI and AI Agents# Learn More8 Impressions