laravel-config-writer
laravel-config-writer copied to clipboard
Write to Laravel Config files and maintain file integrity
Can someone help me out getting this to work within an octobercms component ? Use Config; Config::write('acme.demo::url', 'http://octobercms.com'); Error : Call to undefined method October\Rain\Config\Repository::write() Looking at the [documentation](https://octobercms.com/docs/api/october/rain/config/configwriter) there's...
It it common to have env method calls in config files. These should also be rewritable. To implement this I had to be able to use a specific replace pattern...
I need to write an array to an array. Is this possible even possible? Like e.g. `rules.php` ```php return [ 'rules' => [ [ 'name' => 'Test rule', 'value' =>...
I tried to install October CMS which [uses laravel-config-writer](https://github.com/octobercms/install/blob/master/install_files/php/InstallerRewrite.php). The installer asks for the password of the MySQL database and since my passwords are all randomly generated, they contain special...
is there a easy and solid way to do this?
Hi, whats the recomended way to put this code? ``` php App::instance('config', function($app){ $loader = $app->getConfigLoader(); $writer = October\Rain\Config\FileWriter($loader, $app['path'].'/config'); return new October\Rain\Config\Repository($loader, $writer, $app['env']); }) ``` Maybe in App::filter()...
Laravel 10.48.20 Code: Config::write('app.url', 'http://domain.com'); or app('config')->write('app.url', 'http://domain.com'); I'm getting an error: Method Illuminate\Config\Repository::write does not exist.