themosis / theme

The Themosis framework theme.
http://framework.themosis.com/
GNU General Public License v2.0
104 stars 35 forks source link

Add config file #25

Closed Givx closed 7 years ago

Givx commented 7 years ago

How add a config file for example in folder config :

test.config.php

How add this file in the ConfigFactory ?

Thanks

jlambe commented 7 years ago

Just create a test.config.php file inside your theme config directory.

Your config file must be a returned array. For example:

return [
    'name' => 'John',
    'category' => 42
];

You can then access all of its properties like so:

$all = Config::get('test');

// Or a single property.
$one = Config::get('test.name');
Givx commented 7 years ago

Ok thanks.

But i want to add Illuminate\Session in my template but it's not very easy. ;)