El modelo de Laravel está sucio
if($product->isDirty()){
// changes have been made
}
Asif Patel
if($product->isDirty()){
// changes have been made
}
protected function performUpdate(Builder $query, array $options = [])
{
$dirty = $this->getDirty();
if (count($dirty) > 0)
{
// runs update query
}
return true;
}