fix 1.2.8 - logo app

This commit is contained in:
2026-06-08 20:10:33 +02:00
parent 8194b8c034
commit 7d7d384a0d
3 changed files with 33 additions and 12 deletions
@@ -398,6 +398,15 @@ class ImpostazioniController extends Controller
$settings->save();
}
$linkPath = public_path('storage');
if (!file_exists($linkPath) && !is_link($linkPath)) {
try {
symlink(storage_path('app/public'), $linkPath);
} catch (\Throwable $e) {
Log::warning('Impossibile creare symlink storage: ' . $e->getMessage());
}
}
return redirect('/impostazioni#logo')->with('success', 'Logo caricato con successo.');
}