PHP code example of mantraideas / laravel-env-doctor
1. Go to this page and download the library: Download mantraideas/laravel-env-doctor library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mantraideas / laravel-env-doctor example snippets
php artisan vendor:publish --provider="mantraideas\LaravelEnvDoctor\LaravelEnvDoctorServiceProvider"
return [
/*
|--------------------------------------------------------------------------
| Required Environment Variables
|--------------------------------------------------------------------------
|
| These are the essential environment variables your Laravel application
| needs to function properly. The checker will verify they exist and
| aren't empty. Default values are only for reference in the check.
|
*/
'ABASE',
// 'DB_USERNAME',
// 'DB_PASSWORD',
'SESSION_DRIVER',
'SESSION_LIFETIME',
'SESSION_ENCRYPT',
'SESSION_PATH',
// 'SESSION_DOMAIN',
'BROADCAST_CONNECTION',
'FILESYSTEM_DISK',
'QUEUE_CONNECTION',
'CACHE_STORE',
'MEMCACHED_HOST',
'REDIS_CLIENT',
'REDIS_HOST',
// 'REDIS_PASSWORD',
'REDIS_PORT',
'MAIL_MAILER',
// 'MAIL_SCHEME',
'MAIL_HOST',
'MAIL_PORT',
// 'MAIL_USERNAME',
// 'MAIL_PASSWORD',
'MAIL_FROM_ADDRESS',
'MAIL_FROM_NAME',
// 'AWS_ACCESS_KEY_ID',
// 'AWS_SECRET_ACCESS_KEY',
'AWS_DEFAULT_REGION',
// 'AWS_BUCKET',
'AWS_USE_PATH_STYLE_ENDPOINT',
'VITE_APP_NAME',
// Add More Variables as needed
],
/*
|--------------------------------------------------------------------------
| Directory Permissions Check
|--------------------------------------------------------------------------
|
| These directories must be writable for proper application functioning.
| Recommended permissions:
| - 0775 for storage and cache directories (owner and group can write)
| - 0777 only if absolutely necessary (less secure)
|
*/
'directories_to_check' => [
[
'path' => storage_path(),
'bash
php artisan env:doctor