die if missing php-zip

This commit is contained in:
Kode 2018-11-04 21:43:12 +00:00
parent d25aea38fb
commit 7ba8ea6dd4

View file

@ -50,7 +50,12 @@ class AppServiceProvider extends ServiceProvider
$applications = Application::all();
if($applications->count() <= 0) {
ProcessApps::dispatch();
if (class_exists('ZipArchive')) {
ProcessApps::dispatch();
} else {
die("You are missing php-zip");
}
}
if(!is_file(public_path('storage'))) {