src/http/controllers/HCBaseController.php
public function apiUpdateStrict(string $id)
    {
        DB::beginTransaction();

        try {
            $record = $this->__apiUpdateStrict($id);
        } catch (\Exception $e) {
            DB::rollback();

            return HCLog::error('CORE-0003' . $e->getCode(), $e->getMessage());
        }

        DB::commit();

        return $record;
    }
public function apiUpdateStrict(string $id)
    {
        DB::beginTransaction();

        try {
            $record = $this->__apiUpdateStrict($id);
        } catch (\Exception $e) {
            DB::rollback();

            return HCLog::error('CORE-0003' . $e->getCode(), $e->getMessage());
        }

        DB::commit();

        return $record;
    }
public function apiUpdateStrict ( string $ id ) { DB :: beginTransaction ( ) ; try { $ record = $ this -> __apiUpdateStrict ( $ id ) ; } catch ( \ Exception $ e ) { DB :: rollback ( ) ; return HCLog :: error ( 'CORE-0003' . $ e -> getCode ( ) , $ e -> getMessage ( ) ) ; } DB :: commit ( ) ; return $ record ; }
Function which will update specific values of the record

@param $id
@return mixed
Function which will update specific values of the record