checkbox values not being received in laravel controller

2145 views php

I have this bit of code in my form edit.blade.php :



  <div class="row">
     @foreach($images as $image)
    <div class="col-md-5">
      <img src="{{URL::asset($image)}}"  >
    <div class="col-md-1"><input form="services" type="checkbox"  name="deleteimagelink[]" value="{{($image)}}"  >




This is for passing the path of those images meant to be deleted. And I have this snippet in my controller:

foreach ($deletables as $deletable)


I have this problem that nothing is being received in the $request->input('deleteimagelink') parameter. Please guide me if I'm doing anything wrong. If nothing seems weird, can you please guide me how to deal with these checkbox situations in laravel. I consulted related answers from internet but nothing seems to work.

answered question

1 Answer


change name in input

<input form="services" type="checkbox"  name="deleteimagelink" value="{{($image)}}"  >

posted this

Have an answer?


Please login first before posting an answer.