fix(settings): read SuperAdmin overlay via ConfigService everywhere

This commit is contained in:
2026-08-22 15:10:54 +03:30
parent 197b49b719
commit 7bdb2c91a0
9 changed files with 31 additions and 35 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ namespace App\Services\SmsBilling;
use App\Models\Setting;
use App\Models\SmsWallet;
use App\Models\User;
use App\Services\ConfigService;
class SmsAlertService
{
@@ -35,7 +36,7 @@ class SmsAlertService
return;
}
$appName = trim((string) Setting::where('key', 'name_fa')->value('value'));
$appName = trim(app(ConfigService::class)->getString('name_fa'));
if ($appName === '') {
$appName = 'این نسخه';
}