bushart/set-env-variables 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bushart/set-env-variables

最新稳定版本:1.2

Composer 安装命令:

composer require bushart/set-env-variables

包简介

laravel set env variable

README 文档

README

Set a .env file variable from the command line.

Docs

Install package

Add the package in your composer.json by executing the command.

composer require bushart/set-env-variables

Usage

When running the env:set Artisan command, provide both a key and value as two arguments.

$ php artisan env:set app_name Example
# Environment variable with key 'APP_NAME' has been changed from 'Laravel' to 'Example'

You can set values with spaces by wrapping them in quotes.

$ php artisan env:set app_name "Example App"
# Environment variable with key 'APP_NAME' has been changed from 'Laravel' to '"Example App"'

The command will also create new environment variables if an existing one does not exist.

$ php artisan env:set bash=code
# Environment variable with key 'BASH' has been set to 'code'

The command will handle invalid inputs and provide meaningful error messages.

$ php artisan env:set @ss_n@w Laravel
# Invalid environment key. Only use letters and underscores

Additional Notes

The env:set command is designed to enhance your environment variable management. Have fun CRUDding! :-)

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-24