fix 1.2.8 - logo app
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user