where('bike_no', '>=', '10010010001')->get(); $boxs = BoxBinding::where('box_no', 'in', $bikes->pluck('box_no'))->get(); $this->line(count($bikes).'=='.count($boxs)); } }