Skip to content

Commit 130bc52

Browse files
author
Daniel Källstrand Modig
committed
Make disk look in package config for which disk to generate output to. For users utilizing S3 etc this might spare them a few confuse minutes looking for the output, and the hassle of donwloading them from S3
1 parent d7eaa4d commit 130bc52

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/api-postman.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,11 @@
8080

8181
'include_middleware' => ['api'],
8282

83+
/*
84+
* Disk to use
85+
*
86+
* Default to output on local disk
87+
*/
88+
'disk' => 'local'
89+
8390
];

src/Commands/ExportPostmanCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function handle(): void
138138
}
139139
}
140140

141-
Storage::put($exportName = "postman/$this->filename", json_encode($this->structure));
141+
Storage::disk($this->config['disk'])->put($exportName = "postman/$this->filename", json_encode($this->structure));
142142

143143
$this->info("Postman Collection Exported: $exportName");
144144
}

0 commit comments

Comments
 (0)