public function saving(Event $event) { if (!$event->key) { $event->key = $this->eventService->makeEventKey(); } }