laravel model isdirty code example
Example: laravel model isdirty
if($model->isDirty()){
// the model has been edited, else codes here will not be executed
}
if($model->isDirty()){
// the model has been edited, else codes here will not be executed
}