-1
@foreach($items as $item)
<tr>
<td><input type="checkbox" name="check_delete[]" value="{{$item->item_num}}" /></td>
<td>{!! $item->item_num !!}</td>
<td>{!! \App\Category::where('cat_id',$item->model)->first()->cat_name !!}</td>
<td>{!! \App\Category::where('cat_id',$item->model)->first()->selling_price !!}</td>
<td>{!! $item->color !!}</td>
<td>{!! $item->production_year !!}</td>
<td>
<a style="width: 80%"
href="{!! action('[email protected]', $item->model) !!}">Edit</a>
</td>
<td>
<div>
<a href="{!! action('[email protected]', $item->item_id) !!}"
class="btn btn-info">Edit</a>
</div>
</td>
<td width="8%">
<div>
<a href="{!! action('[email protected]', $item->item_id) !!}"
class="btn btn-danger" onclick="return confirmDelete();">Delete</a>
</div>
</td>
{!! Form::open(array('url'=>'/entry/print/bar-code/'.$item->item_num)) !!}
<td width="8%">
<div>
{!!Form::number('numToPrint'.$item->item_num,null,array('class'=>'form-control pull-right','placeholder'=>'Number of Copies To Print','style'=>'width:100%','id'=>'numToPrint'.$item->item_num)) !!}
</div>
</td>
<td width="8%">
<div><button href="{!! action('[email protected]', $item->item_num) !!}" class="btn btn-primary">Print</button>
</div>
</td>
{!! Form::close() !!}
</tr>
@endforeach
</tbody>
<td width="8%">
<div>
<a href="{!! action('[email protected]_by_checks') !!}"
class="btn btn-danger" onclick="return confirmDelete();">Delete by checks</a>
</div>
</td>
</table>
@endif
這是我的路線laravel5.2如何從多個複選框獲得價值
Route::get('entry/delete/item', ['uses' => '[email protected]_by_checks']);
當我通過檢查,點擊刪除,當寫dd($request->check_delete)
我得到0。I試圖把被刪除的問題檢查形式,但不工作。
我要當點擊刪除通過檢查我得到了所有項目的值檢查累。這個問題我請任何一個可以告訴我怎麼解決,