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();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire