Last Updated: February 25, 2016
·
280
· wern

get laravel package config

with the app/config directory as the root, just separate each directory you want to navigate to with forward slash (/), then use the file name of the config file (excluding the .php extension), then navigate each array item with .

For example, you want to get the key from the config file at app/config/packages/username/sample-package/awesomeconfig.php:

return array(
 'key' => '123'
);

It would be:

Config::get('packages/username/sample-package/awesomeconfig.key')