Force default timezone to UTC; move helpers.php

This commit is contained in:
Nabeel Shahzad
2017-12-10 08:47:03 -06:00
parent f2add8908b
commit 3c41089a8a
5 changed files with 10 additions and 5 deletions

16
app/helpers.php Normal file
View 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);
}
}
}