Modules\SystemInstaller\Module::registerDB PHP Method

registerDB() protected method

protected registerDB ( $config )
    protected function registerDB($config)
    {
        $capsule = new Capsule();
        $capsule->addConnection($config);
        $capsule->setAsGlobal();
        $capsule->bootEloquent();
        $this->container['db'] = function () {
            return new Capsule();
        };
    }