langleyfoxall / laravel-config-to-env
⚙ Artisan 命令,用于将 Laravel 配置文件中的所有变量替换为对 env() 的调用
v1.0.2
2018-11-05 09:52 UTC
Requires
- illuminate/console: ^5.5
- illuminate/support: ^5.5
- nikic/php-parser: ^4.0
This package is auto-updated.
Last update: 2024-09-06 09:07:06 UTC
README
此包提供了一个 Artisan 命令,用于将 Laravel 配置文件中的所有变量替换为对 env()
的调用。
安装
然后,您可以通过以下 Composer 命令安装此包。
composer require langleyfoxall/laravel-config-to-env
使用方法
# Run on a single config file php artisan config:config-to-env "config/queue.php" # Run on all config files php artisan config:config-to-env "config/*.php"