model() 공개 메소드

public model ( ) : Conversation
리턴 Conversation
예제 #1
0
 /**
  * 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();
 }