PHP code example of axel-dzhurko / laravel-secret-env
1. Go to this page and download the library: Download axel-dzhurko/laravel-secret-env library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
axel-dzhurko / laravel-secret-env example snippets
return [
/*
* Defines the file that will be used to store and retrieve the credentials.
*/
'file' => config_path('credentials.php.enc'),
/*
* Defines the key that will be used to encrypt / decrypt the credentials.
* The default is your application key. Be sure to keep this key secret!
*
* WARNING:: Need to use 1 of key option. Not used options must be 'null' or commented
*/
'key' => config('app.key'),
'key_file' => storage_path('cred.key'),
'cipher' => config('app.cipher'),
'editor' => env('EDITOR', 'nano')
];