PHP code example of mathiasgrimm / laravel-dot-env-gen

1. Go to this page and download the library: Download mathiasgrimm/laravel-dot-env-gen library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mathiasgrimm / laravel-dot-env-gen example snippets


// config/app.php

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

// config/dotenvgen.php

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

	// Ignores the `database/seeds` directory
	'database/seeds' => [],
],
bash
php artisan vendor:publish --provider="MathiasGrimm\LaravelDotEnvGen\DotEnvGenServiceProvider" --tag="config"