Skip to content

Commit

Permalink
Merge pull request andreaselia#25 from ikoncept/feature/dynamic-disk
Browse files Browse the repository at this point in the history
Feature/dynamic disk
  • Loading branch information
tomirons authored Feb 24, 2021
2 parents 9ee6c0d + 357f247 commit 9c54eab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions config/api-postman.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,11 @@

'include_middleware' => ['api'],

/*
* Disk Driver.
*
* Specify the configured disk for storing the postman collection file.
*/
'disk' => 'local',

];
2 changes: 1 addition & 1 deletion src/Commands/ExportPostmanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function handle(): void
}
}

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

$this->info("Postman Collection Exported: $exportName");
}
Expand Down

0 comments on commit 9c54eab

Please sign in to comment.