PHP code example of neelkanthk / laravel-easyenv

1. Go to this page and download the library: Download neelkanthk/laravel-easyenv 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/ */

    

neelkanthk / laravel-easyenv example snippets

 return $app; 

use Neelkanth\Laravel\EasyEnv\EasyEnv;
$app->useEnvironmentPath(EasyEnv::path())->loadEnvironmentFrom(EasyEnv::file());
bash
php artisan vendor:publish --provider="Neelkanth\Laravel\EasyEnv\Providers\EasyEnvServiceProvider" --tag="config"
 bootstrap/app.php
bash
php artisan easyenv:[action] {env} {path} {file}
bash
php artisan easyenv:add staging /var/www/env/ .staging
bash
php artisan easyenv:enable staging
bash
php artisan easyenv:list
bash
php artisan easyenv:disable
bash
php artisan easyenv:remove staging