fixed storage path
				
					
				
			This commit is contained in:
		@@ -5,6 +5,7 @@ namespace App\Jobs\Install;
 | 
			
		||||
use App\Abstracts\Job;
 | 
			
		||||
use Illuminate\Support\Facades\File;
 | 
			
		||||
use Illuminate\Support\Str;
 | 
			
		||||
use Illuminate\Support\Facades\Storage;
 | 
			
		||||
 | 
			
		||||
class CopyFiles extends Job
 | 
			
		||||
{
 | 
			
		||||
@@ -35,7 +36,7 @@ class CopyFiles extends Job
 | 
			
		||||
            throw new \Exception(trans('modules.errors.file_copy', ['module' => $this->alias]));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $source = storage_path('app/temp/' . $this->path);
 | 
			
		||||
        $source = Storage::path('app/temp/' . $this->path);
 | 
			
		||||
 | 
			
		||||
        $destination = $this->getDestination($source);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -6,6 +6,7 @@ use App\Abstracts\Job;
 | 
			
		||||
use App\Traits\SiteApi;
 | 
			
		||||
use App\Utilities\Info;
 | 
			
		||||
use Illuminate\Support\Facades\File;
 | 
			
		||||
use Illuminate\Support\Facades\Storage;
 | 
			
		||||
 | 
			
		||||
class DownloadFile extends Job
 | 
			
		||||
{
 | 
			
		||||
@@ -47,7 +48,7 @@ class DownloadFile extends Job
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $path = 'temp-' . md5(mt_rand());
 | 
			
		||||
        $temp_path = storage_path('app/temp/' . $path);
 | 
			
		||||
        $temp_path = Storage::path('app/temp/' . $path);
 | 
			
		||||
 | 
			
		||||
        $file_path = $temp_path . '/upload.zip';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -4,6 +4,7 @@ namespace App\Jobs\Install;
 | 
			
		||||
 | 
			
		||||
use App\Abstracts\Job;
 | 
			
		||||
use Illuminate\Support\Facades\File;
 | 
			
		||||
use Illuminate\Support\Facades\Storage;
 | 
			
		||||
use ZipArchive;
 | 
			
		||||
 | 
			
		||||
class UnzipFile extends Job
 | 
			
		||||
@@ -35,7 +36,7 @@ class UnzipFile extends Job
 | 
			
		||||
            throw new \Exception(trans('modules.errors.unzip', ['module' => $this->alias]));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $temp_path = storage_path('app/temp/' . $this->path);
 | 
			
		||||
        $temp_path = Storage::path('app/temp/' . $this->path);
 | 
			
		||||
 | 
			
		||||
        $file = $temp_path . '/upload.zip';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user