From 067f82b632d13d467c338b887f45d07b129bea43 Mon Sep 17 00:00:00 2001 From: Kode Date: Mon, 5 Nov 2018 18:47:56 +0000 Subject: [PATCH] fix copy failing --- app/SupportedApps.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/SupportedApps.php b/app/SupportedApps.php index a2d96dc4..ec82fb85 100644 --- a/app/SupportedApps.php +++ b/app/SupportedApps.php @@ -129,6 +129,10 @@ abstract class SupportedApps public static function saveApp($details, $app) { + if(!file_exists(public_path('storage/icons'))) { + mkdir(public_path('storage/icons'), 0777, true); + } + $img_src = app_path('SupportedApps/'.className($details->name).'/'.$details->icon); $img_dest = public_path('storage/icons/'.$details->icon); //die("i: ".$img_src);