php - How to update the multiselected checkbox values in laravel


multiselected checkbox image

I want to update the values in database. Please help me. The value is coming from the view like array in controller



    if(count($req->input("involved"))!= 0){

           foreach ($values as $value){
             $subscriberNewsletter= CmsSubscriberInvolve::where('subscriber_id',$id)
             ->update(["value"=>$value] );

People are also looking for solutions to the problem: php - Load Json Data into an AmChart


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.