samedi 25 avril 2020

How to update many db setting values in laravel

1.I have checkboxes data from view.

$data =["name1" =>"value1","name2"=>"value2","name3"=>"value3"]

2.I need to update in controller something like:

Config::update(
          ['id'=>1,"name"=>"name1","value"=>"value1"],
          ['id'=>2,"name"=>"name2","value"=>"value2"],
          ['id'=>3,"name"=>"name2","value"=>"value3"],
       );


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2xNcXbz
via IFTTT

Aucun commentaire:

Enregistrer un commentaire