dynamic options controlled

This commit is contained in:
Burak Civan
2022-10-05 09:59:37 +03:00
parent 4e6988373c
commit e80e9b5f34
2 changed files with 48 additions and 10 deletions

View File

@ -65,6 +65,12 @@
search-text="{{ $searchText }}"
@endif
@if (! empty($attributes['selected-control']))
selected-control
@elseif (! empty($selectedControl))
selected-control
@endif
@if (empty($multiple))
@if (isset($selected) || old($name))
value="{{ old($name, $selected) }}"