@@ -172,7 +172,7 @@ protected function prepare(): self
172
172
Str::slug ($ this ->campaign ->name ) . '_ ' .
173
173
date ('Ymd_His ' ) . '.zip ' ;
174
174
CampaignCache::campaign ($ this ->campaign );
175
- //$this->path = $saveFolder . $this->file;
175
+ // $this->path = $saveFolder . $this->file;
176
176
$ this ->archive = Zip::create ($ this ->file );
177
177
178
178
// Count the number of elements to export to get a rough idea of progress
@@ -265,8 +265,8 @@ protected function entities(): self
265
265
}
266
266
} catch (Exception $ e ) {
267
267
Log::error ('Campaign export ' , ['err ' => $ e ->getMessage ()]);
268
- //$saveFolder = storage_path($this->exportPath);
269
- //$this->archive->saveTo($saveFolder);
268
+ // $saveFolder = storage_path($this->exportPath);
269
+ // $this->archive->saveTo($saveFolder);
270
270
throw new Exception (
271
271
'Missing campaign entity relation: ' . $ entity . '- ' . $ class . '? '
272
272
. $ e ->getMessage ()
@@ -312,8 +312,8 @@ protected function customEntities(): self
312
312
}
313
313
} catch (Exception $ e ) {
314
314
Log::error ('Campaign export ' , ['err ' => $ e ->getMessage ()]);
315
- // $saveFolder = storage_path($this->exportPath);
316
- // $this->archive->saveTo($saveFolder);
315
+ // $saveFolder = storage_path($this->exportPath);
316
+ // $this->archive->saveTo($saveFolder);
317
317
throw new Exception (
318
318
'Missing campaign entity relation: ' . $ entityType ->singular . '? '
319
319
. $ e ->getMessage ()
@@ -343,8 +343,8 @@ protected function gallery(): self
343
343
/** @var Image $image */
344
344
$ this ->processImage ($ image );
345
345
} catch (Exception $ e ) {
346
- // $saveFolder = storage_path($this->exportPath);
347
- // $this->archive->saveTo($saveFolder);
346
+ // $saveFolder = storage_path($this->exportPath);
347
+ // $this->archive->saveTo($saveFolder);
348
348
throw new Exception (
349
349
$ e ->getMessage ()
350
350
);
@@ -461,7 +461,7 @@ protected function finish(): self
461
461
// Save all the content.
462
462
try {
463
463
$ path = 'exports/campaigns/ ' . $ this ->campaign ->id . '/ ' ;
464
- $ this ->exportPath = $ path . $ this ->file ;
464
+ $ this ->exportPath = $ path . $ this ->file ;
465
465
Log::info ('Campaign export finished ' , ['exportPath ' => $ this ->exportPath ]);
466
466
$ this ->archive ->saveToDisk ('s3 ' , $ path );
467
467
Storage::disk ('s3 ' )->setVisibility ($ this ->exportPath , 'public ' );
0 commit comments