rasim / config
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
Config Writer for Laravel 4
dev-master
2014-12-17 00:01 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is not auto-updated.
Last update: 2020-08-15 10:00:31 UTC
README
Config Writer for Laravel 4
==================
Features by daftspunk/laravel-config-writer with additions by myself.
For Laravel 5 original repo: https://github.com/daftspunk/laravel-config-writer
Installation
- In composer.json;
"rasim/config": "dev-master"
- In app.php
'Rasim\Config\ConfigWriterServiceProvider',
Usage
Config::write("__FILE.CONFIG__","__VALUE__","__FOLDER__");
__FOLDER__ (optional) default path folder: config
Single Write
Config::write("app.url","www.domain.com"); // path: config/app.php "url" editing. Config::write("app.url","www.domain.com","config"); // path: config/app.php "url" editing. Config::write("reminders.sent","Sent Password!","lang/en"); // path: lang/en/reminders.php "sent" editing.
Multi Write
Config::write(["app.url","app.locale"],["www.domain.com","tr"]); Config::write(["reminders.sent","app.url"],["Sent Password!","www.domain.com"],["lang/en",""]);