v0.10.0: Docker + Update-Funktion + deploy.sh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user