Here is a dropdown menu with multiple selections:
<select multiple size="4" name="darha[]">
@foreach($doors as $door)
<option value="{ image: '{{ $door->image }}'; code: '{{ $door->code }}'}"{{ $door->code }}</option>
@endforeach
</select>
Here is the controller in the store function:
$product->darha = implode(', ', $request->darha);
The data inserted into the table looks like this:
{ image: '1527585419301-Door-T-D.jpg'; code: '301-Door-T-D' }, { image: '1527851661402-Door-A-T.jpg'; code: '402-Door-A-T' }
My question is, how can I access the values or properties of each object? Specifically, how can I access the image or code value?