Here is my select option
The question was asked for multiple chosen.
Assuming you have a field called designation and you need to choose multiple designation for adding 1 record and the field name is forWhom
During Add
You need to add this {{ (collect(old('forWhom'))->contains($key)) ? 'selected':'' }} peace of code to your option tag
which will look like
During Edit
You need to add
{{ (collect(old('forWhom'))->contains($key)) ? 'selected':'' }}
{{ (in_array($key,$info->forWhom)) ? 'selected' : ''}}
which will look like
Select all selected id's in a multiselect dropdown in laravel 5.4 with harvest chosen
Thanks