generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dade6eb
commit 328ed98
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
# Changelog | ||
|
||
All notable changes to `laravel-local-temporary-url` will be documented in this file. | ||
|
||
## First release - 2023-11-03 | ||
|
||
### Usage | ||
|
||
This package needs zero configuration, just install and it's good to go. However, if your local disk is different or you want to add another disk, you can configure it. You can add multiple local disks in the config using the `disk` key. <br> | ||
|
||
The package applies `web` and `signed` middleware on routes by default, however, you can configure middleware(s) using the `middleware` key. | ||
|
||
#### Generate Temporary URL | ||
|
||
You can use the same syntax used for S3 disk. | ||
|
||
```php | ||
Storage::disk('local')->temporaryUrl('file.txt', now()->addMinutes(5)); | ||
|
||
``` |