Files
citrus-cms/app/Http/Controllers/SaveTrigger/welder_tests.php
T
2026-04-28 21:14:25 +03:00

24 lines
512 B
PHP

<?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
]);
?>