PHP code example of moh-slimani / laravel-env-write
1. Go to this page and download the library: Download moh-slimani/laravel-env-write 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/ */
moh-slimani / laravel-env-write example snippets
use MohSlimani\LaravelEnvWrite\Facades\LaravelEnvWrite;
// Update the environment file with a specific key and value
LaravelEnvWrite::updateEnvironmentFileWith('APP_ENV', 'production');