mardi 22 janvier 2019

Laravel - Update all IDs on Where Clause Query

how can I update all the id on my database im using a update query how can i do it ? here is my query on the controller

 public function updateSchedule(Request $request, $id)
{
    $timein = $request->input('timeIn');
    $timeout = $request->input('timeOut');

    DB::table('schedules')
        ->where('id', 1)
        ->update(['time_in' => $timein, 'time_out' => $timeout]);

}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire