Created
April 25, 2019 10:17
-
-
Save minedun6/410281055121112c6ef05c59414943bc to your computer and use it in GitHub Desktop.
Tempory link to upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$disk = Storage::disk('s3'); | |
$disk->put($filename, fopen($this->filePath, 'r+')); | |
return Storage::disk('s3')->temporaryUrl($filename, now()->addWeek()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment