Download the PHP package mathiasgrimm/laravel-dot-env-gen without Composer
On this page you can find all versions of the php package mathiasgrimm/laravel-dot-env-gen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mathiasgrimm/laravel-dot-env-gen
More information about mathiasgrimm/laravel-dot-env-gen
Files in mathiasgrimm/laravel-dot-env-gen
Package laravel-dot-env-gen
Short Description A Laravel 5 artisan command to generate a .env.gen file based on the existing project.
License
Homepage https://github.com/mathiasgrimm/laravel-dot-env-gen/
Informations about the package laravel-dot-env-gen
Laravel Dot Env Generator
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:
Add the service provider:
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:
Example config:
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.