This commit is contained in:
@@ -43,7 +43,7 @@ if (!function_exists('get_truth_state')) {
|
||||
$state = strtolower($state);
|
||||
}
|
||||
|
||||
return \in_array($state, $enabledStates, false);
|
||||
return in_array($state, $enabledStates, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,6 +148,18 @@ if (!function_exists('setting')) {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Shortcut for retrieving a setting value
|
||||
*/
|
||||
if (!function_exists('setting_save')) {
|
||||
function setting_save($key, $value)
|
||||
{
|
||||
$settingRepo = app('setting');
|
||||
$settingRepo->save($key, $value);
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Wrap the asset URL in the publicBaseUrl that's been
|
||||
* set
|
||||
|
||||
Reference in New Issue
Block a user