PHPackages                             serg28/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. serg28/laravel-self-diagnosis

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

serg28/laravel-self-diagnosis
=============================

Perform various self diagnosis tests on your Laravel application (fork).

083PHP

Since Nov 25Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

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)[![Build Status](https://camo.githubusercontent.com/f710e8fe8de59b1d3efa34a091cd5bcc7aea5c127d34ec6d6503f8b0f0b47727/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6265796f6e64636f64652f6c61726176656c2d73656c662d646961676e6f7369732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/beyondcode/laravel-self-diagnosis)[![Quality Score](https://camo.githubusercontent.com/262e653cdbc996b5dc93369bfd5abeffbe52f022e8e9c962250ba1ec42f463d2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6265796f6e64636f64652f6c61726176656c2d73656c662d646961676e6f7369732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/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
```

If you're using Laravel 5.5+ the `SelfDiagnosisServiceProvider` will be automatically registered for you.

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.

```
