mathiasgrimm/laravel-dot-env-gen 问题修复 & 功能扩展

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

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

mathiasgrimm/laravel-dot-env-gen

最新稳定版本:v0.9

Composer 安装命令:

composer require mathiasgrimm/laravel-dot-env-gen

包简介

A Laravel 5 artisan command to generate a .env.gen file based on the existing project.

README 文档

README

A Laravel 5 command that generates a .env.gen file containing all environment variables defined in .env as well as any undefined variables that are being used throughout the project.

Installation

Install the package using composer:

composer require mathiasgrimm/laravel-dot-env-gen:dev-master

Add the service provider:

// config/app.php

'providers' => [
	...
	'MathiasGrimm\LaravelDotEnvGen\DotEnvGenServiceProvider',
	...
],

Add .env.gen to your .gitignore

Configuration

You can control which directories are scanned by providing exclusion rules in the dotenvgen.php config file. For a fresh Laravel install, we suggest that all subdirectories inside vendor are ignored except for vendor/laravel.

Publish the config file:

php artisan vendor:publish --provider="MathiasGrimm\LaravelDotEnvGen\DotEnvGenServiceProvider" --tag="config"

Example config:

// config/dotenvgen.php

'rules' => [
	// Ignores all files inside `vendor` except for those in `vendor/laravel`
	'vendor' => ['laravel'],

	// Ignores the `database/seeds` directory
	'database/seeds' => [],
],

Usage

From the command line, run php artisan env:gen.

A .env.gen file will be generated in your project's root folder. Make any changes you may need, then rename the file to .env.

Along with generating the .env.gen file, the command will notify you if a defined environment variable is unused as well as alert you if an undefined environment variable is being used.

Screenshot

Screenshot

统计信息

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

GitHub 信息

  • Stars: 170
  • Watchers: 4
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-02-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固