setting changed 2

This commit is contained in:
2026-06-05 17:43:02 +03:30
parent 7776abf6a3
commit c082e5eb42
8 changed files with 152 additions and 234 deletions
+7 -1
View File
@@ -152,7 +152,13 @@ class Controller extends BaseController
}
public static function Config($name)
{
return Setting::where('key',$name)->first()->value ?? false;
$row = Setting::where('key', $name)->first();
if ($row && $row->is_active && $row->value !== null && $row->value !== '') {
return $row->value;
}
return false;
}
protected static function metalTypeSettingValue(): ?string