protected function afterInsert() { parent::afterInsert(); foreach ($this->tags as $tag) { $this->tag($tag); } }