I'm building a PHP app using Laravel Framework. I need to read some session values on every request and use this values on my controller methods.
How can I achieve this? Where to put this code?
I would like something like the Zend Framework Bootstrap class.
Config::set('foo' => 'bar')in a service provider andConfig::get('foo')will be available everywhere. If you use multidimensional arrays to set the values, you can grab them with dot notation.