public function get_clonejho() { $checkouts = Checkin::all(); foreach ($checkouts as $a) { $chk = Checkin::where('fleet_id', '=', $a->fleet_id)->where('operasi_time', '=', $a->operasi_time)->first(); $chk->jho_id = $a->jho_id; } }