Skip to content

Commit 4a3bd1a

Browse files
committed
Update parameter
1 parent 9b52666 commit 4a3bd1a

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
@@ -8,7 +8,7 @@
88
$column['radius'] = $column['radius'] ?? "3px";
99
$column['prefix'] = $column['prefix'] ?? '';
1010
$column['temporary'] = $column['temporary'] ?? false;
11-
$column['expire'] = $column['expire'] ?? 1;
11+
$column['expiration'] = $column['expiration'] ?? 1;
1212
1313
if($column['value'] instanceof \Closure) {
1414
$column['value'] = $column['value']($entry);
@@ -23,7 +23,7 @@
2323
} elseif (isset($column['disk'])) { // image from a different disk (like s3 bucket)
2424
2525
if (!empty($column['temporary'])) {
26-
$href = $src = Storage::disk($column['disk'])->temporaryUrl($column['prefix'].$column['value'], now()->addMinutes((int) $column['expire']));
26+
$href = $src = Storage::disk($column['disk'])->temporaryUrl($column['prefix'].$column['value'], now()->addMinutes((int) $column['expiration']));
2727
} else {
2828
$href = $src = Storage::disk($column['disk'])->url($column['prefix'].$column['value']);
2929
}

0 commit comments

Comments
 (0)