PHPackages                             mantraideas/laravel-env-doctor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. mantraideas/laravel-env-doctor

ActiveLibrary[CLI &amp; Console](/categories/cli)

mantraideas/laravel-env-doctor
==============================

LaravelEnvDoctor is a developer-friendly CLI tool for Laravel that checks your .env variables, validates the current environment, and ensures directory permissions are correctly set — helping you catch misconfigurations before they become problems.

1.0.6(1w ago)14710↓52.4%2MITPHPCI failing

Since May 26Pushed 1w agoCompare

[ Source](https://github.com/MantraIdeas/LaravelEnvDoctor)[ Packagist](https://packagist.org/packages/mantraideas/laravel-env-doctor)[ RSS](/packages/mantraideas-laravel-env-doctor/feed)WikiDiscussions 1.x Synced 3d ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

[![Laravel Env Doctor](https://camo.githubusercontent.com/be0dbd847b3a7aaa271a802b00dd3e0dee4793aa5f62d92504c30620c76b6b94/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230456e76253230446f63746f722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d616e74726169646561732532466c61726176656c2d656e762d646f63746f72267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d446961676e6f73652b796f75722b4c61726176656c2b656e7669726f6e6d656e742b636f6e66696775726174696f6e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/be0dbd847b3a7aaa271a802b00dd3e0dee4793aa5f62d92504c30620c76b6b94/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230456e76253230446f63746f722e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d616e74726169646561732532466c61726176656c2d656e762d646f63746f72267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d446961676e6f73652b796f75722b4c61726176656c2b656e7669726f6e6d656e742b636f6e66696775726174696f6e266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

Laravel Environment Doctor 🩺
============================

[](#laravel-environment-doctor-)

[![Latest Stable Version](https://camo.githubusercontent.com/2392069f88ef6fbe245f10116a8aa651ac5accc10673f280b0ca919c5dba0a4e/687474703a2f2f706f7365722e707567782e6f72672f6d616e74726169646561732f6c61726176656c2d656e762d646f63746f722f76)](https://packagist.org/packages/mantraideas/laravel-env-doctor)[![Total Downloads](https://camo.githubusercontent.com/0c751879acc7f54a4fb0f086bbde9d2e84d91749a7ba6b6daee508f856fd4217/687474703a2f2f706f7365722e707567782e6f72672f6d616e74726169646561732f6c61726176656c2d656e762d646f63746f722f646f776e6c6f616473)](https://packagist.org/packages/mantraideas/laravel-env-doctor)[![License](https://camo.githubusercontent.com/6b54db60273ab11c06d9ee6df802be4284148bfe443af3f654f415874c831bed/687474703a2f2f706f7365722e707567782e6f72672f6d616e74726169646561732f6c61726176656c2d656e762d646f63746f722f6c6963656e7365)](https://packagist.org/packages/mantraideas/laravel-env-doctor)

A diagnostic tool that checks your Laravel application's environment configuration and directory permissions to prevent common deployment issues.

> **Version 1.0.5+** adds a **File Existence Check** — verify that critical files (`.env`, SSL certificates, OAuth keys) exist, are readable, and have the correct permissions.

Features
--------

[](#features)

- ✅ Checks for required `.env` variables
- 🔒 Verifies directory permissions
- 📄 Checks that critical files exist and are readable (v1.0.5+)
- 📊 Provides a summary report
- 📝 Optional logging of results
- 🎨 Beautiful console output

Installation
------------

[](#installation)

Install via Composer:

```
composer require mantraideas/laravel-env-doctor
```

Publish the configuration file:
-------------------------------

[](#publish-the-configuration-file)

```
php artisan vendor:publish --provider="mantraideas\LaravelEnvDoctor\LaravelEnvDoctorServiceProvider"
```

Usage
-----

[](#usage)

Run the environment diagnosis:

```
php artisan env:doctor
```

Enable logging to a file:

```
php artisan env:doctor --log
```

Configuration
-------------

[](#configuration)

You can customize the configuration by publishing the config file:

```
