How to retrieve global settings from database table ? I know how to create global settings in array like this: path:
app/config/settings.php
<?php
return array(
'admin_email' =>'mail@shabeebk.com',
'admin_name' =>'Admin',
);
and in controller:
$cvalue = Config::get('settings.admin_name');
I'd like to achive the same effect but this time data receive from table settings
$data = Settings::get();
return as array and have globally acces to them.