fix(db): initialize DBConfig group data correctly

This commit is contained in:
idevakk
2025-10-03 16:47:15 +05:30
parent c0409f6fdf
commit ed47635c97
2 changed files with 3 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class DynamicMailConfigServiceProvider extends ServiceProvider
private function loadConfiguration(): void
{
try {
$group = DbConfig::getGroup('mail');
$group = DbConfig::getGroup('mail') ?? [];
$this->mailConfig = (in_array($group, [null, []], true)) ? [] : $group;
$this->mailConfig['app_url'] = db_config('website.site_url') ?? env('APP_URL', 'http://localhost');
} catch (\Throwable) {