protected function generateCviCertificate(\Event $event) { $document = $this->populateCviCertificate($event); return $document->storePDF(); }