laravel - How to access values from a configuration file stored in subdirectory? -


accessing config values @ run-time in laravel 4 done using config class:

config::get('app.timezone'); 

to organize config files, i'd put them different sub-directories.

for example:

  • /config/users/  ->  for user specific configuration
  • /config/auth/    ->  authentication related
  • and on...

i read an elder tutorial (laravel v3) dayle rees him stating it's possible following:

$option = config::get('ourconfig.sub.directory.size'); 

tried out no luck. according jason lewis never supported.

then i've had @ laravel 4 api , found load() , getrequire() (more related functions can found here).

however, couldn't find way grab sub-dir config values in l4.

so,

  1. is possible laravel 4?
  2. …and, if so, how?

a solution problem works me is:

config::get('subdir/file.key'); 

did try 1 yet or looking more complex method?


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -