astatroth/laravel-config

An extension of the Config component, it adds the ability to write to configuration files.

1.0.0 2017-03-01 09:41 UTC

This package is auto-updated.

Last update: 2024-04-21 01:51:39 UTC


README

Total Downloads

An extension of the Config component, it adds the ability to write to configuration files. Compatible with Laravel 5.2.

Based on [daftspunk/laravel-config-writer] (https://github.com/daftspunk/laravel-config-writer)

Installation

Add Laravel Config to your composer.json file:

"astatroth/laravel-config": "~1.0"

and run composer update or composer install.

Another way is to require the package:

composer require astatroth/laravel-config

Next, add the package service provider to your app/config.php:

Astatroth\LaravelConfig\LaravelConfigServiceProvider::class,

That's it!

Usage

Usage is as simple as

Config::write($key, $value);

Have fun! :)