Skip to content

Commit

Permalink
update docs to add custom parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
abrardev99 authored Jun 15, 2024
1 parent 6ef34ad commit ac85fbf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,20 @@ You can use the same syntax used for S3 disk.
Storage::disk('local')->temporaryUrl('file.txt', now()->addMinutes(5));
```

### Pass Parameters
You can pass parameters to the temporaryUrl function for ef filename.
```php
Storage::disk('local')->temporaryUrl('file.txt', now()->addMinutes(5), ['filename' => 'customname']);
```

Not just file name, you can pass other options as well (with respect to disk)
```php
[
'ResponseContentType' => 'application/octet-stream',
'ResponseContentDisposition' => 'attachment; filename=file2.jpg',
]
```

## Testing

```bash
Expand Down

0 comments on commit ac85fbf

Please sign in to comment.