fix(settings): read SuperAdmin overlay via ConfigService everywhere
This commit is contained in:
@@ -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 = 'این نسخه';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user