Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

rasim/config-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Writer for Laravel 4

==================

Total Downloads

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",""]);

About

Config Writer for Laravel 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages