File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/resources/views/crud/columns Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments