I'll start by saying I have read all of the docs on the Laravel site, but I am still confused.
http://laravel.com/docs/4.2/packages#package-configuration
Simply put Config::get('package::file.option'); should work.
I have a custom package, at truckr/sdk. First, the docs never mention the vendor name so I have assumed this means my package would follow the name 'sdk'. I have a vendor/truckr/sdk/src/config/config.php file that this should be able to read my 'endpoint' variable from within the config.php array. That being said, it looks like this should work: Config::get('sdk::config.endpoint');
I get an empty array. The goal of this is to alter my endpoint for the SDK url within the package that is configurable at the deploy. My deploys are generating these config files in app/config/truckr/sdk . Now, I have also tried every variation I can imagine.
Config::get('truckr/sdk::config.endpoint');
Config::get('truckr.sdk::config.endpoint');
Config::get('truckr/sdk::endpoint');
Config::get('sdk::endpoint');
You get my drift. Am I not namespacing this? It seems like I am not registering the config file, or its not autoloading, or I'm just being dumb. I'm open to ideas.