Package Data | |
---|---|
Maintainer Username: | furkankadioglu |
Maintainer Contact: | furkan.kadioglu@gmail.com (Furkan Kadıoğlu) |
Package Create Date: | 2016-07-06 |
Package Last Update: | 2016-09-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:09:16 |
Package Statistics | |
---|---|
Total Downloads: | 46 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Permanently Save and Set Config Variables For Laravel 5
The best way to install this package is through your terminal via Composer.
Add the following line to the composer.json
file and fire composer update
"furkankadioglu/permacon": "dev-master"
Once this operation is complete, simply add the service provider to your project's config/app.php
furkankadioglu\Permacon\PermaconServiceProvider::class,
'Permacon' => 'furkankadioglu\Permacon\Facade',
use Permacon;
return Permacon::get("app", "locale");
// returns "en"
Getting your config variables like Config:get("app.locale")
use Permacon;
Permacon::set("config", "locale", "tr");
return Permacon::get("app", "locale");
//returns "tr"
Update config variables
use Permacon;
Permacon::scan("database");
Scans config/database.php for making a copy.
use Permacon;
Permacon::scanAll();
Scans config folder and generating copies for edit.
php artisan permacon:scan
Scans config folder and generating copies for edit.