This commit is contained in:
Lizandro Guarnizo
2026-01-28 14:47:43 -05:00
parent 39e62d67f0
commit 2eef39c2ea
4 changed files with 58 additions and 5 deletions
+4 -4
View File
@@ -49,8 +49,8 @@ class AppServiceProvider extends ServiceProvider
return new PBKDF2Hasher();
});
if (Schema::hasTable('settings')) {
try {
try {
if (Schema::hasTable('settings')) {
$setting = Setting::first();
if ($setting) {
// Aquí se actualizan los valores de configuración de Filament
@@ -58,9 +58,9 @@ class AppServiceProvider extends ServiceProvider
Config::set('filament.brand.colors.primary', $setting->primary_color ?? '#3498db');
Config::set('filament.brand.colors.secondary', $setting->secondary_color ?? '#2ecc71');
}
} catch (\Exception $e) {
Log::error('Error al cargar configuraciones de settings: ' . $e->getMessage());
}
} catch (\Exception $e) {
Log::warning('Skipping settings load in AppServiceProvider: ' . $e->getMessage());
}
}