lundi 17 décembre 2018

How to update row and return updated_at?

I attempted to update row and return value of updated_at instantly after:

$product = ProductModel::where("Id", $id)->update(["Status" => 0]);

return $product->updated_at;

How to do that correct?

Also can I do this globally for each update?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire