bmaximilian/laravel-env-overloader 问题修复 & 功能扩展

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

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

bmaximilian/laravel-env-overloader

Composer 安装命令:

composer require bmaximilian/laravel-env-overloader

包简介

A Dotenv extension to use multiple environment config files

README 文档

README

Build Status Latest Stable Version License

A Dotenv extension to use multiple environment config files.

Environment overloading can be useful when dealing with local environment variables (such as APP_KEY) or when dealing with secrets that should not be committed to your repository.

Installation

Install with composer

composer require bmaximilian/laravel-env-overloader

Overload the environment with multiple env files

Paste the following code in your bootstrap/app.php

$env = $app->detectEnvironment(function() {
    MaximilianBeck\Environment\Overloader\EnvironmentOverloader::overload();
});

Use commands to generate a simple .env file

If you are on Laravel < 5.4: Add the following provider to your $providers in config/app.php

MaximilianBeck\Environment\Overloader\Console\Providers\EnvironmentConsoleServiceProvider::class,

For newer Laravel versions, this service provider should be auto-discovered.

Usage

Create .env Files in the root directory of your Laravel application. The .env.base File can be created for configuration that should be the same for all environments (e.g. feature flags). The .env.${APP_ENV} File is loaded for all specific configurations for the currently deployed environment. You can also pass an array of file names to the EnvironmentOverloader::overload() as first argument for more custom environment files. The standard .env File is loaded as master which overrides other files.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固