Force default timezone to UTC; move helpers.php
This commit is contained in:
16
app/helpers.php
Normal file
16
app/helpers.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Shortcut for retrieving a setting value
|
||||
*/
|
||||
if (!function_exists('setting')) {
|
||||
function setting($key, $value = null)
|
||||
{
|
||||
$settingRepo = app('setting');
|
||||
if($value === null) {
|
||||
return $settingRepo->get($key);
|
||||
} else {
|
||||
$settingRepo->set($key, $value);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user