Reputation: 825
In Laravel using Config:set('database.connections.mysql.host','localhost')
make changes to the config file temporarily for the current user only, and it also does not make changes to the config file also. How can I make changes to the config file permanently so that it affects all users and if I opens the config file the I get the changed values.
Upvotes: 2
Views: 6481
Reputation: 541
You should just go to the config file itself and set it manually there. if what you want is to dynamically set a config variable permanently then i recommend https://github.com/Phil-F/Setting/
Note that this will not change any of the laravel config. Instead it creates a json based config alongside, though it can also do clever stuff like use laravel config as a fallback option.
As for https://github.com/daftspunk/laravel-config-writer, i was unable to get this working.
Upvotes: 3