Use aboslute path for the migration archive (#3490)
This commit is contained in:
parent
64eed274e1
commit
648cd73bec
|
|
@ -60,7 +60,7 @@ class ImportMigrations extends Command
|
||||||
foreach ($directory as $file) {
|
foreach ($directory as $file) {
|
||||||
if ($file->getExtension() === 'zip') {
|
if ($file->getExtension() === 'zip') {
|
||||||
$this->info('Started processing: ' . $file->getBasename() . ' at ' . now());
|
$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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue