Exemplo n.º 1
0
 public function UpdateThread(Threads\Thread $thread, $subject, $body, Member $author, $isQuestion, $laravelVersion, array $tagIds)
 {
     $thread->fill(['subject' => $subject, 'body' => $body, 'author_id' => $author->id, 'is_question' => $isQuestion, 'laravel_version' => $laravelVersion]);
     $thread->setTagsById($tagIds);
     $this->raise(new Threads\Events\ThreadUpdatedEvent($thread));
     return $thread;
 }