Move Mail, PDF configuration to Database, standardize configurations

This commit is contained in:
Darko
2025-09-19 15:22:57 +02:00
parent 3da86965e1
commit c0def45040
24 changed files with 948 additions and 433 deletions

View File

@@ -18,15 +18,15 @@ class ConfigMiddleware
public function handle(Request $request, Closure $next): Response
{
if (InstallUtils::isDbCreated()) {
// Only handle dynamic file disk switching when file_disk_id is provided
if ($request->has('file_disk_id')) {
$file_disk = FileDisk::find($request->file_disk_id);
} else {
$file_disk = FileDisk::whereSetAsDefault(true)->first();
}
if ($file_disk) {
$file_disk->setConfig();
if ($file_disk) {
$file_disk->setConfig();
}
}
// Default file disk is now handled by AppConfigProvider during boot
}
return $next($request);