devski/laravel-doctor

An open-source diagnostics and repair toolkit for Laravel applications.

Maintainers

Package info

github.com/abu-saied-mondal/laravel-doctor

pkg:composer/devski/laravel-doctor

Transparency log

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.3 2026-07-19 17:23 UTC

This package is auto-updated.

Last update: 2026-07-19 17:24:31 UTC


README

Packagist Version Total Downloads License

Laravel Doctor doesn't just tell developers what's broken. It explains why it's broken, what the impact is, whether it's safe to fix, and can repair it automatically.

Laravel Doctor is an open-source diagnostics and repair toolkit for Laravel applications. It provides a health check platform to inspect, explain, repair, and optimize your application states with surgical precision.

🚀 Features

  • 🔍 Comprehensive Diagnostics: Automatically scan storage, permissions, databases, queues, cache, configurations, keys, and mail configurations.
  • 💡 Contextual Explanations: Understand the exact consequences and risks of failed checks.
  • 🛠️ Safe Auto-Repairs: Instantly apply safe, surgical fixes for common configuration and system issues.
  • 📊 Flexible Reporting: Output diagnostics in beautifully formatted CLI tables, markdown documentation, or structured JSON.
  • Production & Performance Modes: Separate specialized rules for live systems and performance speed-ups.

📦 Installation

Install the package via Composer:

composer require devski/laravel-doctor --dev

You can publish the configuration file using:

php artisan vendor:publish --tag="doctor-config"

💻 Commands

1. Doctor Scan

Scan your Laravel application for standard health issues:

php artisan doctor:scan

2. Doctor Interactive Repair

Interactive tool to safely repair detected issues:

php artisan doctor:repair

3. Production Validator

Validate environment flags, secure headers, permissions, and caches for a production release:

php artisan doctor:production

4. Performance Optimizer

Scan your application for database, configuration, route, and view caching optimizations:

php artisan doctor:performance

5. Export Report

Generate and save a detailed report:

php artisan doctor:report --format=markdown

📸 Screenshots

CLI Interactive Scan Output:

+------------------+----------+----------------------------+-----------------------+
| Check            | Status   | Issue                      | Repair Available?     |
+------------------+----------+----------------------------+-----------------------+
| App Key          | FAILED   | APP_KEY is missing         | Yes (doctor:repair)   |
| Storage Link     | FAILED   | Public symlink is missing  | Yes (doctor:repair)   |
| DB Connection    | PASSED   | Connected successfully     | -                     |
+------------------+----------+----------------------------+-----------------------+

🤝 Contributing

Thank you for considering contributing to Laravel Doctor! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.

📄 License

The MIT License (MIT). Please see License File for more information.