PHPackages                             beyondcode/laravel-self-diagnosis - 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. beyondcode/laravel-self-diagnosis

ActiveLibrary

beyondcode/laravel-self-diagnosis
=================================

Perform various self diagnosis tests on your Laravel application.

3.1.0(1mo ago)1.5k1.2M↓28%109[3 issues](https://github.com/beyondcode/laravel-self-diagnosis/issues)[2 PRs](https://github.com/beyondcode/laravel-self-diagnosis/pulls)4MITPHPPHP ^8.2

Since Jul 4Pushed 1mo ago22 watchersCompare

[ Source](https://github.com/beyondcode/laravel-self-diagnosis)[ Packagist](https://packagist.org/packages/beyondcode/laravel-self-diagnosis)[ Docs](https://github.com/beyondcode/laravel-self-diagnosis)[ RSS](/packages/beyondcode-laravel-self-diagnosis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (26)Used By (4)

Perform Self-Diagnosis Tests On Your Laravel Application
========================================================

[](#perform-self-diagnosis-tests-on-your-laravel-application)

[![Latest Version on Packagist](https://camo.githubusercontent.com/df4c12d35c97f4f5fceaa4623481cd155d40e82115601e4b984a09e1c442fb1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265796f6e64636f64652f6c61726176656c2d73656c662d646961676e6f7369732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-self-diagnosis)[![Total Downloads](https://camo.githubusercontent.com/f2d4742853b53945845740d2401bde5b55ff295ffd3e72330a6d9915b610168e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265796f6e64636f64652f6c61726176656c2d73656c662d646961676e6f7369732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-self-diagnosis)

This package allows you to run self-diagnosis tests on your Laravel application. It comes with multiple checks out of the box and allows you to add custom checks yourself.

Here is an example output of the command:

[![All Checks passed](https://camo.githubusercontent.com/e174e9e66e63f0c8a40ffbd45a67471557114ca9cfa7212a9a3df30eecc7712b/68747470733a2f2f6265796f6e64636f2e64652f6769746875622f73656c662d646961676e6f7369732f636865636b735f677265656e2e706e67)](https://camo.githubusercontent.com/e174e9e66e63f0c8a40ffbd45a67471557114ca9cfa7212a9a3df30eecc7712b/68747470733a2f2f6265796f6e64636f2e64652f6769746875622f73656c662d646961676e6f7369732f636865636b735f677265656e2e706e67)

Included checks
---------------

[](#included-checks)

- Is the `APP_KEY` set?
- Are your composer dependencies up to date with the `composer.lock` file?
- Do you have the correct PHP version installed?
- Do you have the correct PHP extensions installed?
- Can a connection to the database be established?
- Do the `storage` and `bootstrap/cache` directories have the correct permissions?
- Does the `.env` file exist?
- Is the maintenance mode disabled?
- Are the required locales installed on the system?
- Are there environment variables that exist in `.env.example` but not in `.env`?
- Are there any migrations that need to be run?
- Is the storage directory linked?
- Can Redis be accessed?

### Development environment checks

[](#development-environment-checks)

- Is the configuration not cached?
- Are the routes not cached?
- Are there environment variables that exist in `.env` but not in `.env.example`?

### Production environment checks

[](#production-environment-checks)

- Is the configuration cached?
- Are the routes cached?
- Is the xdebug PHP extension disabled?
- Is APP\_DEBUG set to false?
- Are certain servers reachable?
- Are certain supervisor programs running?

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

[](#installation)

You can install the package via composer:

```
composer require beyondcode/laravel-self-diagnosis
```

Usage
-----

[](#usage)

Just call the artisan command to start the checks:

```
php artisan self-diagnosis
```

### Customization

[](#customization)

You can publish the configuration file, that contains all available checks using:

```
php artisan vendor:publish --provider=BeyondCode\\SelfDiagnosis\\SelfDiagnosisServiceProvider
```

This will publish a `self-diagnosis.php` file in your `config` folder. This file contains all the checks that will be performed on your application.

```
