From 7ba8ea6dd4d75fbb4b5cee3a8b48feda1bfa5844 Mon Sep 17 00:00:00 2001 From: Kode Date: Sun, 4 Nov 2018 21:43:12 +0000 Subject: [PATCH] die if missing php-zip --- app/Providers/AppServiceProvider.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index de2f1095..832ab2b5 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -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'))) {