Skip to content

Commit 9ed23aa

Browse files
authored
Merge pull request #5680 from Laravel-Backpack/add-separator-to-select_multiple
add separator to select_multiple column
2 parents bf39d82 + 2df3388 commit 9ed23aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
$column['suffix'] = $column['suffix'] ?? '';
77
$column['limit'] = $column['limit'] ?? 32;
88
$column['attribute'] = $column['attribute'] ?? (new $column['model'])->identifiableAttribute();
9+
$column['separator'] = $column['separator'] ?? ',';
910
1011
if($column['value'] instanceof \Closure) {
1112
$column['value'] = $column['value']($entry);
@@ -40,7 +41,7 @@
4041
@endif
4142
@includeWhen(!empty($column['wrapper']), 'crud::columns.inc.wrapper_end')
4243

43-
@if(!$loop->last), @endif
44+
@if(!$loop->last){{$column['separator']}}@endif
4445
</span>
4546
@endforeach
4647
{{ $column['suffix'] }}

0 commit comments

Comments
 (0)