public function softDelete($deletedBy) { if ($this->isFirstPost()) { return trans('model_validation.beatmap_discussion_post.first_post'); } $this->update(['deleted_by_id' => $deletedBy->user_id ?? null, 'deleted_at' => Carbon::now()]); }