jeudi 3 mai 2018

Laravel how to update multiple id values

Laravel how to update multiple id valus in table

print_r($test); exit();
Array ( [0] => 185 [1] => 216 )
$report = Test::find($test);
$report->status = "A";
$report->save();



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

Aucun commentaire:

Enregistrer un commentaire