astatroth / laravel-config
An extension of the Config component, it adds the ability to write to configuration files.
Installs: 343
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/astatroth/laravel-config
Requires
- php: >=5.4
- laravel/framework: ~5.4
This package is auto-updated.
Last update: 2025-10-21 05:16:46 UTC
README
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! :)