v0.10.0: Docker + Update-Funktion + deploy.sh

This commit is contained in:
2026-07-02 21:14:18 +02:00
parent 85118c5bcc
commit af2aa1eaf5
20 changed files with 1169 additions and 11 deletions
@@ -3,6 +3,7 @@
namespace App\Providers;
use App\Services\SettingsService;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
@@ -29,5 +30,13 @@ class SettingsServiceProvider extends ServiceProvider
'theme_mode' => 'light',
]);
}
// Update-Badge: aus Cache lesen (kein HTTP-Request auf jeder Seite)
if (!$this->app->runningInConsole()) {
$updateAvailableVersion = Cache::get('app_update_available', null);
View::share('navUpdateAvailable', $updateAvailableVersion ?: false);
} else {
View::share('navUpdateAvailable', false);
}
}
}