eloquent change() code example
Example 1: laravel model is dirty
if($product->isDirty()){
// changes have been made
}
Example 2: check if value change laravel
You can use "$product->getChanges()" on Eloquent model even after persisting.
if($product->isDirty()){
// changes have been made
}
You can use "$product->getChanges()" on Eloquent model even after persisting.