model() public method

public model ( ) : Conversation
return Conversation
コード例 #1
0
ファイル: StartConversation.php プロジェクト: socieboy/forum
 /**
  * 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();
 }