02 Explore Configuration - ct-laravel/lumen GitHub Wiki
- Enable Dotenv configuration
- Enable Dotenv great at keeping sensitive data hidden.
Dotenv::load(__DIR__.'/../');
- Created
.env
OPT_CUSTOM=true
- Lumen configs are found in
vendor/laravel/lumen-framework/config
- Custom configs are found in
config
- Created
config/options.php
- Created
return [
'custom' => env('OPT_CUSTOM', true),
];
- Loading Custom configs
app()->configure('options');
$custom = config('options.custom');