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')
Written by Wern Ancheta
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Config
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#