write webservice for get answer when panjareh vahed get answer
This commit is contained in:
@@ -65,9 +65,13 @@ class PanjareVahedController extends Controller
|
||||
}
|
||||
public function getAccessRoad(GetAccessRoadRequest $request, Harim $harim)
|
||||
{
|
||||
Harim::update([
|
||||
'panjarevahed_id' => $request->panjarevahed_id,
|
||||
'polygon' => $request->polygon,
|
||||
$state = HarimStates::BARESI_FILE_APLODE_SHODE_TAVASOTE_DAFTAR_HARIM->value;
|
||||
|
||||
$harim->update([
|
||||
'state_id' => $state,
|
||||
'state_name' => HarimStates::name($state),
|
||||
'panjare_vahed_id' => $request->panjare_vahed_id,
|
||||
'access_road' => $request->access_road,
|
||||
]);
|
||||
return $this->successResponse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user