Permacon
, (*1)
Permanently Save and Set Config Variables For Laravel 5, (*2)
Installation
The best way to install this package is through your terminal via Composer., (*3)
Add the following line to the composer.json
file and fire composer update
, (*4)
"furkankadioglu/permacon": "dev-master"
Once this operation is complete, simply add the service provider to your project's config/app.php
, (*5)
Service Provider
furkankadioglu\Permacon\PermaconServiceProvider::class,
Aliases
'Permacon' => 'furkankadioglu\Permacon\Facade',
Usage
Get Data
use Permacon;
return Permacon::get("app", "locale");
// returns "en"
Getting your config variables like Config:get("app.locale"), (*6)
Set Data
use Permacon;
Permacon::set("config", "locale", "tr");
return Permacon::get("app", "locale");
//returns "tr"
Update config variables, (*7)
Scan Data
use Permacon;
Permacon::scan("database");
Scans config/database.php for making a copy., (*8)
Scan All
use Permacon;
Permacon::scanAll();
Scans config folder and generating copies for edit., (*9)
Commands
php artisan permacon:scan
Scans config folder and generating copies for edit., (*10)