2017 © Pedro Peláez
 

library permacon

Permanently Save and Set Config Variables For Laravel 5

image

furkankadioglu/permacon

Permanently Save and Set Config Variables For Laravel 5

  • Friday, September 16, 2016
  • by furkankadioglu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Permacon

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)

The Versions

16/09 2016

dev-master

9999999-dev https://github.com/furkankadioglu/Permacon

Permanently Save and Set Config Variables For Laravel 5

  Sources   Download

MIT

The Requires

 

by Furkan Kadıoğlu

config laravel 5 laravel5 set permanently furkankadioglu