Cómo actualizar una tabla basada en tres columnas Laravel

$name=Input::get('name');
        DB::table('attendence')
            ->where('name',$name)
            ->update([
                'checkedout' =>  $this->data->checkedout,
                'type'=> $this->data->type,
            ]);
        return redirect('attendence')->with('Thank You!');
Worried Willet