public function __construct(ThreadRepository $thread)
 {
     parent::__construct();
     $this->entityName = 'privatemessage.threads';
     $this->repository = $thread;
 }
 public function __construct(MessageRepository $message)
 {
     parent::__construct();
     $this->entityName = 'privatemessage.messages';
     $this->repository = $message;
 }