Skip to content

Commit 436adb5

Browse files
authored
Update src/resources/views/crud/columns/upload_multiple.blade.php
1 parent 0630c26 commit 436adb5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
$column['escaped'] = $column['escaped'] ?? true;
77
$column['wrapper']['element'] = $column['wrapper']['element'] ?? 'a';
88
$column['wrapper']['target'] = $column['wrapper']['target'] ?? '_blank';
9-
$column_wrapper_href = $column['wrapper']['href'] ?? function($file_path, $disk, $prefix) {
9+
$column_wrapper_href = $column['wrapper']['href'] ??
10+
function($file_path, $disk, $prefix) {
1011
if (is_null($disk)) {
1112
return $prefix.$file_path;
1213
}
13-
1414
if (isset($column['temporary'])) {
1515
return asset(\Storage::disk($disk)->temporaryUrl($file_path, Carbon\Carbon::now()->addMinutes($column['temporary'])));
1616
}
17-
1817
return asset(\Storage::disk($disk)->url($file_path));
1918
};
2019

0 commit comments

Comments
 (0)