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();
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2KOZ3qb
via IFTTT
Aucun commentaire:
Enregistrer un commentaire