Figured it out myself after looking at inspiration from the former module.
The solution was:
<select id="contacts" name="contact_id" style="width:100%">
@foreach($contacts as $contact)
<option value="{{ $contact->id }}" class="{{ $contact->customer_id }}">{{ $contact->name }}</option>
@endforeach
</select>
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community