Skip to content

Commit 9c54eab

Browse files
authored
Merge pull request #25 from ikoncept/feature/dynamic-disk
Feature/dynamic disk
2 parents 9ee6c0d + 357f247 commit 9c54eab

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 Driver.
85+
*
86+
* Specify the configured disk for storing the postman collection file.
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)