Create a config file? What do you want to do? What is your use case here?
Jul 8, 2015
4
Level 8
Global variables
What is the best way to have global variables in Lumen and retrieve them like in Laravel (with Config::get())?
Level 88
This thread is also related: https://laracasts.com/discuss/channels/lumen/cant-get-config-data-in-lumen
// Sample code
$app->configure('myConfigFile');
// Now you can use it like this
Config::get('myConfigFile.variable');
Please or to participate in this conversation.