@php // dd(array_merge(Session::get('attributeOptionArr'))); $selected = []; if (Session::get('attributeOptionArr')) { foreach (Session::get('attributeOptionArr') as $key => $value) { foreach ($value as $key2 => $value2) { $selected[] = $value2; } } } @endphp
{!! Form::select('choice_options_' . $request->i . '[]', $attrOption,$selected, ['onchange' => 'update_sku()', 'multiple' => 'multiple', 'class' => 'form-control select2 select_like_tag']) !!}