hello team I have two table. reqs and item so I want to update req.status to reject and then update item.quantity equal to item_requested. please assist here is my controller only update req_status
public function rejectRequest($id)
{
$reject = Ssrareq::where('req_id',$id)->update(['status_req'=>'reject']);
return back();
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire