/** * Run after a record has been deleted. * * @param AssignmentInterface $model */ public function deleted(AssignmentInterface $model) { $model->flushCache(); $model->compileStream(); $this->dispatch(new DropAssignmentColumn($model)); $this->dispatch(new DeleteAssignmentTranslations($model)); $this->events->fire(new AssignmentWasDeleted($model)); }