Laravel System Check
Check your server and application configuration according to APP_ENV
Installation
-
Run
composer require arrilot/laravel-systemcheck -
Register a service provider inside the
app.phpconfiguration file.
...
'providers' => [
...
Arrilot\SystemCheck\ServiceProvider::class,
],Usage
This package provides a php artisan system:check command that performs a bunch of checks and prints results.
There are two modes.
- production
- dev
Each mode has its own collection of checks.
The mode is determined automatically according to APP_ENV.
You can override current environment by passing --env to the command. php artisan system:check --env=production
Configuration
By default the package treats the following environments as "production":
['production', 'prod']You can override them by calling
app()->make(ChecksCollection::class)->setProductionEnvironments(['prod1', 'prod2']);in your AppServiceProvider

