first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
if (! function_exists('setting')) {
/**
* Get / set the specified setting value.
*
* If an array is passed, we'll assume you want to set settings.
*
* @param string|array $key
* @param mixed $default
* @return mixed|\Modules\Setting\Repository
*/
function setting($key = null, $default = null)
{
if (is_null($key)) {
return app('setting');
}
if (is_array($key)) {
return app('setting')->set($key);
}
try {
return app('setting')->get($key, $default);
} catch (PDOException $e) {
return $default;
}
}
}