Skip to content

Commit 0630c26

Browse files
authored
Update upload_multiple.blade.php
1 parent 8849ab7 commit 0630c26

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
return $prefix.$file_path;
1212
}
1313
14-
return isset($column['temporary']) ?
15-
asset(\Storage::disk($disk)->temporaryUrl($file_path, Carbon\Carbon::now()->addMinutes($column['temporary']))) :
16-
asset(\Storage::disk($disk)->url($file_path));
14+
if (isset($column['temporary'])) {
15+
return asset(\Storage::disk($disk)->temporaryUrl($file_path, Carbon\Carbon::now()->addMinutes($column['temporary'])));
16+
}
17+
18+
return asset(\Storage::disk($disk)->url($file_path));
1719
};
1820
1921
if($column['value'] instanceof \Closure) {

0 commit comments

Comments
 (0)