protected function registerRepository()
    {
        $this->app->singleton(RepositoryContract::class, function (Container $container) {
            $config = $container->make(ConfigRepository::class);
            $guard  = $container->make(Guard::class);
            $cache  = $container->make(CacheFactory::class)->store($config->get('vi-kon.db-config.cache'));

            return new Repository($guard, $cache);
        });

        $this->app->alias(RepositoryContract::class, 'config.db');
    }