getDirty()); }); static::deleted(function ($model) { ActivityLog::record('deleted', $model); }); } }