public function archivedTask(TaskWasArchived $event) { if ($event->task->is_deleted) { return; } $this->activityRepo->create($event->task, ACTIVITY_TYPE_ARCHIVE_TASK); }