/** * Execute the job. * * @param ConversationRepo $conversationRepo * * @return void */ public function handle(ConversationRepo $conversationRepo) { $conversation = $conversationRepo->model(); $conversation->fill($this->prepareDate()); $conversation->save(); if (config('forum.events.fire')) { event(new NewConversation($conversation)); } }
/** * Execute the job. * * @param ConversationRepo $conversationRepo * @return void */ public function handle(ConversationRepo $conversationRepo) { $conversation = $conversationRepo->model(); $conversation->fill($this->prepareDate()); $conversation->save(); }