Initial commit

This commit is contained in:
2025-11-20 23:21:05 +08:00
commit 13bc6db529
378 changed files with 54527 additions and 0 deletions

23
app/helpers.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
use App\Services\SettingsService;
if (! function_exists('settings')) {
/**
* Get the SettingsService instance
*
* @param string|null $key Optional key to get a specific setting
* @param mixed $default Default value if key is provided
* @return SettingsService|mixed
*/
function settings(?string $key = null, $default = null)
{
$service = app(SettingsService::class);
if ($key !== null) {
return $service->get($key, $default);
}
return $service;
}
}