Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
multiple select send data two times

I'm creating a simple multiple selectable dropdown using jQuery amsify Select

this is my User interface

enter image description here

this is my user inter face code

<label for="medium_id" class="col-form-label">Medium</label>
<select class="form-control " multiple="multiple" id="medium_id" name="medium_id[]">
<option value="">Select Medium</option>
    @foreach( [$medium][0] as $medium)
         <option value="{{$medium->id}}">{{$medium->name}}</option>
    @endforeach
 </select>

this is my Laravel storing to database code

foreach ($request->medium_id as $medium)
{
    medium_classes::create([
         'classes_id'=>$classes->id,
         'medium_id'=>$medium
    ]);
}

this is my jQuery code

<script>
$('select').amsifySelect({
   type :'bootstrap',
   searchable : true
});
</script>

and this is dd() output in here that multiple select sending data's multiple times 😢

enter image description here any one can you help me

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!