src/Spiritix/LadaCache/LadaCacheServiceProvider.php
private function registerConnections()
    {
        $this->app->bind('db.connection.mysql', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new MysqlConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.postgres', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new PostgresConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.sqllite', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new SqlLiteConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.sqlserver', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new SqlServerConnection($connection, $database, $prefix, $config);
        });
    }
private function registerConnections()
    {
        $this->app->bind('db.connection.mysql', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new MysqlConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.postgres', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new PostgresConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.sqllite', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new SqlLiteConnection($connection, $database, $prefix, $config);
        });

        $this->app->bind('db.connection.sqlserver', function ($app, $parameters) {
            list($connection, $database, $prefix, $config) = $parameters;
            return new SqlServerConnection($connection, $database, $prefix, $config);
        });
    }
private function registerConnections ( ) { $ this -> app -> bind ( 'db.connection.mysql' , function ( $ app , $ parameters ) { list ( $ connection , $ database , $ prefix , $ config ) = $ parameters ; return new MysqlConnection ( $ connection , $ database , $ prefix , $ config ) ; } ) ; $ this -> app -> bind ( 'db.connection.postgres' , function ( $ app , $ parameters ) { list ( $ connection , $ database , $ prefix , $ config ) = $ parameters ; return new PostgresConnection ( $ connection , $ database , $ prefix , $ config ) ; } ) ; $ this -> app -> bind ( 'db.connection.sqllite' , function ( $ app , $ parameters ) { list ( $ connection , $ database , $ prefix , $ config ) = $ parameters ; return new SqlLiteConnection ( $ connection , $ database , $ prefix , $ config ) ; } ) ; $ this -> app -> bind ( 'db.connection.sqlserver' , function ( $ app , $ parameters ) { list ( $ connection , $ database , $ prefix , $ config ) = $ parameters ; return new SqlServerConnection ( $ connection , $ database , $ prefix , $ config ) ; } ) ; }
Register connections.

Here we are overriding all connection singleton's from Laravel.
This is the only way to make them use our custom query builder which then uses our cache.
Register connections .