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
@@ -20,7 +20,8 @@ class ConfigService
}
/**
* مقدار setting؛ اگر نبود از config/price_providers.php یا default پارامتر.
* مقدار setting؛ اول سوپرادمین، بعد DB لوکال، بعد price_providers.php.
* برای کلیدهای can_edit=0 همیشه از این مسیر (یا ConfigService) بخوانید — نه Setting::where مستقیم.
*/
public function get(string $key, $default = null)
{