PHP code example of stechstudio / laravel-env-security
1. Go to this page and download the library: Download stechstudio/laravel-env-security 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/ */
stechstudio / laravel-env-security example snippets
'providers' => [
...
STS\EnvSecurity\EnvSecurityServiceProvider::class,
]
\EnvSecurity::resolveEnvironmentUsing(function() {
// return the environment name
});
\EnvSecurity::resolveKeyUsing(function($environment) {
return "myapp-$environment";
});