public function afterDelete() { $attribute = $this->attribute; if ($this->unlinkOnDelete && $attribute) { $this->delete($attribute); } }