modify a column whenever passed through model laravel code example
Example 1: laravel model is dirty
if($product->isDirty()){
// changes have been made
}
Example 2: laravel eloquent remove from db
$res=User::where('id',$id)->delete();
if($product->isDirty()){
// changes have been made
}
$res=User::where('id',$id)->delete();