vendredi 17 juillet 2020

How to get value of column before and after update in laravel?

I am trying to get value of database table column value before and after update . I now the normal process like store it in different variable . But I want to know if laravel provide any functionality about it.

$consignment->pallet = $request->input('pallet');
$consignment->save();

I searched about it and some told that there is method getOriginal() in laravel which helps to get previous value but to me it always return me updated value how i can achieve it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire