model() public méthode

public model ( ) : Conversation
Résultat Conversation
Exemple #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();
 }