0
I have a <select multiple>
which is filled with information from a table exams, the user selects the exams he wants for a certain function and sends to register in the table exams, okay.
My doubts are:
How to show this recovered data on an editing screen, ie leave as selected the exams that are registered for the selected function.
How to update this table exams? Deleting the registered exams of that function and inserting the new ones?
Table exams: id, name, description
Table function: id, name, description
Table function_exams: id, id_exame, id_funcao
<select multiple id="exames" name="exames[]" class="form-control">
@foreach($exames as $exame)
<option value="{{ $exame->id }}">{{ $exame->nome }}</option>
@endforeach
</select>