protected function setMessengerModels()
    {
        $config = $this->app->make('config');

        Models::setMessageModel($config->get('chatmessenger.message_model', Message::class));
        Models::setThreadModel($config->get('chatmessenger.thread_model', Thread::class));
        Models::setParticipantModel($config->get('chatmessenger.participant_model', Participant::class));

        Models::setTables([
            'messages' => $config->get('chatmessenger.messages_table', Models::message()->getTable()),
            'participants' => $config->get('chatmessenger.participants_table', Models::participant()->getTable()),
            'threads' => $config->get('chatmessenger.threads_table', Models::thread()->getTable()),
        ]);
    }
protected function setMessengerModels()
    {
        $config = $this->app->make('config');

        Models::setMessageModel($config->get('chatmessenger.message_model', Message::class));
        Models::setThreadModel($config->get('chatmessenger.thread_model', Thread::class));
        Models::setParticipantModel($config->get('chatmessenger.participant_model', Participant::class));

        Models::setTables([
            'messages' => $config->get('chatmessenger.messages_table', Models::message()->getTable()),
            'participants' => $config->get('chatmessenger.participants_table', Models::participant()->getTable()),
            'threads' => $config->get('chatmessenger.threads_table', Models::thread()->getTable()),
        ]);
    }
protected function setMessengerModels ( ) { $ config = $ this -> app -> make ( 'config' ) ; Models :: setMessageModel ( $ config -> get ( 'chatmessenger.message_model' , Message :: class ) ) ; Models :: setThreadModel ( $ config -> get ( 'chatmessenger.thread_model' , Thread :: class ) ) ; Models :: setParticipantModel ( $ config -> get ( 'chatmessenger.participant_model' , Participant :: class ) ) ; Models :: setTables ( [ 'messages' => $ config -> get ( 'chatmessenger.messages_table' , Models :: message ( ) -> getTable ( ) ) , 'participants' => $ config -> get ( 'chatmessenger.participants_table' , Models :: participant ( ) -> getTable ( ) ) , 'threads' => $ config -> get ( 'chatmessenger.threads_table' , Models :: thread ( ) -> getTable ( ) ) , ] ) ; }
Define Messenger's models in registry

@return void
Define Messenger s models in registry