arrilot / laravel-systemcheck
Installs: 1 299
Dependents: 0
Suggesters: 0
Security: 0
Stars: 28
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.5.0
- illuminate/console: 5.*
- illuminate/container: 5.*
- illuminate/contracts: 5.*
- illuminate/support: 5.*
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2023-01-17 06:31:07 UTC
README
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.php
configuration 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