Socieboy\Forum\Entities\Replies\ReplyRepo::model PHP Method

model() public method

public model ( ) : Reply
return Reply
    public function model()
    {
        return new Reply();
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Execute the job.
  *
  * @param ReplyRepo $replyRepo
  * @param Mailer $mailer
  * @return void
  */
 public function handle(ReplyRepo $replyRepo, Mailer $mailer)
 {
     $reply = $replyRepo->model();
     $reply->fill($this->prepareData());
     $reply->save();
     if (config('config.forum.emails.fire')) {
         $this->sendEmail($mailer, $reply);
     }
 }
All Usage Examples Of Socieboy\Forum\Entities\Replies\ReplyRepo::model
ReplyRepo