Skip to content

Commit 9c678e5

Browse files
authored
change parameter to 'temporary'
1 parent d208c72 commit 9c678e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/views/crud/columns/image.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
$href = $src = $column['value'];
2121
} elseif (isset($column['disk'])) { // image from a different disk (like s3 bucket)
2222
23-
if (!empty($column['private_s3_bucket'])) {
23+
if (!empty($column['temporary'])) {
2424
$href = $src = Storage::disk($column['disk'])
25-
->temporaryUrl($column['prefix'].$column['value'], now()->addMinute());
25+
->temporaryUrl($column['prefix'].$column['value'], now()->addMinutes((int) $column['temporary']));
2626
} else {
2727
$href = $src = Storage::disk($column['disk'])->url($column['prefix'].$column['value']);
2828
}

0 commit comments

Comments
 (0)