laravel model set dirty attributes code example Example: laravel model is dirty if($product->isDirty()){ // changes have been made }