17 lines
339 B
PHP
17 lines
339 B
PHP
<?php
|
|
|
|
/**
|
|
* Shortcut for retrieving a setting value
|
|
*/
|
|
if (!function_exists('setting')) {
|
|
function setting($key, $value = null)
|
|
{
|
|
$settingRepo = app('setting');
|
|
if($value === null) {
|
|
return $settingRepo->retrieve($key);
|
|
} else {
|
|
$settingRepo->set($key, $value);
|
|
}
|
|
}
|
|
}
|