parent = $parent; $this->status = $status; } /** * Execute the job. * * @return void */ public function handle() { $groupId = $this->status->group_id; $postId = $this->status->id; if($this->status->) $parent = $this->parent; $parent->reply_count = GroupComment::whereStatusId($parent->id)->count(); $parent->save(); GroupPostService::del($groupId, $postId); GroupFeedService::del($groupId, $postId); GroupPostService::del($groupId, $parent->id); return; } }