Wallogit.com
2017 © Pedro Peláez
Laravel 5.2 - Env Editor
The Enveditor Service Provider can be installed via Composer, (*2)
"require": {
"vidhyar2612/enveditor": "^1.0"
}
Use composer to install this package., (*3)
composer require vidhyar2612/enveditor
Register the service provider within the providers array found in app/config/app.php:, (*4)
'providers' => array(
// ...
vidhyar2612\Enveditor\EnveditorServiceProvider::class
)
Add an alias within the aliases array found in app/config/app.php:, (*5)
'aliases' => array(
// ...
'Enveditor' => 'vidhyar2612\Enveditor\Facade',
)
You can either access the Enveditor store via its facade or inject it by type-hinting towards the abstract class vidhyar2612\Enveditor\EnveditorStore., (*6)
List of all keys and values, (*7)
Create a new key with value, (*8)
Edit value of the key, (*9)
Get the value of the key, (*10)
Delete key, (*11)
Enveditor::all();
Enveditor::create('EXAMPLE_KEY' , '123456');
Enveditor::set('EXAMPLE_KEY' , '123');
Enveditor::get('EXAMPLE_KEY');
Enveditor::delete('EXAMPLE_KEY');
Open an issue on GitHub if you have any problems or suggestions., (*12)
The contents of this repository is released under the MIT license., (*13)