up
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user