ohseesoftware/laravel-get-config 问题修复 & 功能扩展

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

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

ohseesoftware/laravel-get-config

Composer 安装命令:

composer require ohseesoftware/laravel-get-config

包简介

Returns the config value for the given key.

README 文档

README

A simple artisan command to return the value for a given config key. Supports nested retrieval and object export.

Use case

You're probably thinking, "Why do I need this?". To be fair, you probably don't. However, there are a few cases where retrieving config values via a command can make life easier:

  • Running Laravel in a serverless environment
  • Running Laravel in a PaaS (Platform as a Service, ie: Heroku, etc)

In a typical self-hosted Laravel application, you can SSH into your server and run php artisan tinker, and then config($key).

This is not possible in serverless environment (Vapor), as there's no machine to SSH into. In a PaaS, it is usually possible, although can be a bit inconvenient.

Usage

If you have access to running commands for your Laravel application, simply run:

php artisan config:get KEY

Where KEY can be a dot notation config key value: database or database.connections.mysql, etc.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email security@ohseesoftware.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固