daftspunk / laravel-config-writer Goto Github PK
View Code? Open in Web Editor NEWWrite to Laravel Config files and maintain file integrity
Write to Laravel Config files and maintain file integrity
Installation on Laravel 9
ERROR!!!
Could not find a matching version of package daftspunk/laravel-config-writer. Check the package spelling, your version constraint and that the package is availabl e in a stability which matches your minimum-stability (dev).
I have a fix that now works in Laravel 5.5. Will push pull request.
Hello,
The method used in the service provider $loader = $app->getConfigLoader();
doesn't exists.
Call to undefined method Illuminate\Foundation\Application::getConfigLoader()
Any idea how to make it work ?
I tried to install October CMS which uses laravel-config-writer. The installer asks for the password of the MySQL database and since my passwords are all randomly generated, they contain special characters and sometimes that might be a backslash (). The installer always failed with the error:
Unable to rewrite key "connections.mysql.password" in config, rewrite failed
Now I understand that having one backslash isn't really smart anyways, since it will be stored in a string where the backslash will act as escape character. However even if you use two backslashes to escape the first one, rewrite will just error.
Maybe you don't want to support backslashes, but I thought it's worth reporting regardless. ๐
Hey there.
Can you provide a uploaded package so I can use composer to install this?
What is the license for this?
Thanks
I need to write an array to an array. Is this possible even possible? Like e.g.
rules.php
return [
'rules' => [
[
'name' => 'Test rule',
'value' => 'value1'
],
[
'name' => 'Test rule 2',
'value' => 'value 2'
]
]
]
Please make Laravel 10 compatible
Any luck making this work with laravel 5?
Will you update it for Laravel 10 support?
What write in the composer.json?
Thanks,
Hunor
I'm running Laravel 5.8.27 and installed illuminate/config, which gave me version 5.8. When I tried installing your config writer, I got this error:
$ composer require "daftspunk/laravel-config-writer"
Using version ^1.0 for daftspunk/laravel-config-writer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.Problem 1
- don't install illuminate/config 4.2.x-dev|don't install laravel/framework v5.8.27
- don't install illuminate/config 4.2.x-dev|remove laravel/framework v5.8.27
- don't install illuminate/config 4.2.x-dev|don't install laravel/framework v5.8.27
- daftspunk/laravel-config-writer v1.0 requires illuminate/config 4.2.x -> satisfiable by illuminate/config[4.2.x-dev].
- Installation request for daftspunk/laravel-config-writer ^1.0 -> satisfiable by daftspunk/laravel-config-writer[v1.0].
- Installation request for laravel/framework (locked at v5.8.27, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.27].Installation failed, reverting ./composer.json to its original content.
Did I do something wrong? Any advice? Thank you!
Please provide installation instructions in the readme.
Thanks!
Hello,
Can I use this package in laravel 5.3?
How can I install this package with composer?
Is it possible to add new config variable?
Hi,
This package is not available from packagist, can you please publish it?
"extra": {
"laravel": {
"providers": [
"October\Rain\Config\ServiceProvider",
]
}
},
Hi,
whats the recomended way to put this code?
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() ?
Thanks
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 there's a public method toFile()
use October\Rain\Config\ConfigWriter;
(new ConfigWriter)->toFile('acme.demo::url', 'http://octobercms.com');
Error :
file_get_contents(acme.demo::url): failed to open stream: Invalid argument
Note that my plugin : Acme\Demo has a Config Directory and a config.php file.
Anyone?
is there a easy and solid way to do this?
Due to inactivity, I have forked this project to resolve some main issues it has:
If you want this update, you can check this repository https://github.com/tekreme73/laravel-config-writer
I have changed the architecture and rename the namespace, that's why I'm not doing a PR, sorry for that.
If you want to, I can make a PR but it will need some commit to remove my 'Tekreme73' namespace...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.