İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
$id = $request['key'];
|
||||
|
||||
$data = db($tableName)->where("id", $id)->first();
|
||||
$location = $data->shop_or_field;
|
||||
|
||||
$updateWelderLocation = db("welder_locations")
|
||||
->where("naks_id", $data->naks_id)
|
||||
->update([
|
||||
'location' => $location
|
||||
]);
|
||||
|
||||
$updateNaksWelders = db("naks_welders")
|
||||
->where("welder_id", $data->naks_id)
|
||||
->update([
|
||||
'status' => $location
|
||||
]);
|
||||
|
||||
dump([
|
||||
"updateWelderLocation" => $updateWelderLocation,
|
||||
"updateNaksWelders" => $updateNaksWelders
|
||||
]);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user