public function softDelete($deletedBy) { $this->update(['deleted_by_id' => $deletedBy->user_id ?? null, 'deleted_at' => Carbon::now()]); }