alpha v1.7 alpha.1

This commit is contained in:
carodej
2020-07-14 17:31:04 +02:00
parent c9d300769c
commit b1860eac21
33 changed files with 587 additions and 81 deletions

View File

@@ -11,9 +11,17 @@ use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\ImageManagerStatic as Image;
/**
* Get single value from settings table
*
* @param $setting
* @return |null
*/
function get_setting($setting)
{
return Setting::where('name', $setting)->first()->value;
$row = Setting::where('name', $setting)->first();
return $row ? $row->value : null;
}
/**