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

        $model = $config->get('auth.providers.users.model', function () use ($config) {
            return $config->get('auth.model', $config->get('chatmessenger.user_model'));
        });

        Models::setUserModel($model);

        Models::setTables([
            'users' => (new $model)->getTable(),
        ]);
    }
protected function setUserModel()
    {
        $config = $this->app->make('config');

        $model = $config->get('auth.providers.users.model', function () use ($config) {
            return $config->get('auth.model', $config->get('chatmessenger.user_model'));
        });

        Models::setUserModel($model);

        Models::setTables([
            'users' => (new $model)->getTable(),
        ]);
    }
protected function setUserModel ( ) { $ config = $ this -> app -> make ( 'config' ) ; $ model = $ config -> get ( 'auth.providers.users.model' , function ( ) use ( $ config ) { return $ config -> get ( 'auth.model' , $ config -> get ( 'chatmessenger.user_model' ) ) ; } ) ; Models :: setUserModel ( $ model ) ; Models :: setTables ( [ 'users' => ( new $ model ) -> getTable ( ) , ] ) ; }
Define User model in Messenger's model registry.

@return void
Define User model in Messenger s model registry .