From 648cd73bec142c09dae5add4ebabb19c8e083eca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 12 Mar 2020 21:38:39 +0100 Subject: [PATCH] Use aboslute path for the migration archive (#3490) --- app/Console/Commands/ImportMigrations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ImportMigrations.php b/app/Console/Commands/ImportMigrations.php index 2c0904406454..be032ddeacb1 100644 --- a/app/Console/Commands/ImportMigrations.php +++ b/app/Console/Commands/ImportMigrations.php @@ -60,7 +60,7 @@ class ImportMigrations extends Command foreach ($directory as $file) { if ($file->getExtension() === 'zip') { $this->info('Started processing: ' . $file->getBasename() . ' at ' . now()); - StartMigration::dispatch('migrations/import/' . $file->getFilename(), $this->getUser(), $this->getUser()->companies()->first()); + StartMigration::dispatch($file->getRealPath(), $this->getUser(), $this->getUser()->companies()->first()); } } }