PHP code example of sitesoft / laravel-config-writer
1. Go to this page and download the library: Download sitesoft/laravel-config-writer 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/ */
sitesoft / laravel-config-writer example snippets
'October\Rain\Config\ConfigServiceProvider',
$writeConfig = new October\Rain\Config\Rewrite;
$writeConfig->toFile('path/to/config.php', [
'item' => 'new value',
'nested.config.item' => 'value',
'arrayItem' => ['Single', 'Level', 'Array', 'Values'],
'numberItem' => 3,
'booleanItem' => true
]);