Untitled

Anonymous
plain_text
04/21/2026 5:30 AM
904 B
12
Indexable
//fron end
       await axios.post("api/approver", {
    CnId: this.toSave.CnId,

    ReviewedByDhFullName: this.toSave.ReviewedByDh,
}).then(res=>{
    console.log('resdata', res.data)
})
     

     //backend

   public function approver(Request $req){
// return $req['ReviewedByDhFullName'];
          $update = DB::connection('CircularNoticeSystem')
        ->table('t_CnReviewedByDh')
        ->where('CnId', $req['CnId'])
        ->where('ReviewedByDhFullName', $req['ReviewedByDhFullName'])
        ->update([
            'ReviewedByDhSignature' => 'approved',
            'UpdatedDate' => date('Y-m-d H:i:s')

        ]);

 return $update;
    }
Editor is loading...
Leave a Comment