protected function supportsCommonTableExpressionQuery()
    {
        $driver = DB::connection()->getDriverName();

        if ($driver == 'mysql') {
            return true;
        }

        if ($driver == 'sqlite' && \SQLite3::version()['versionNumber'] >= 3008003) {
            return true;
        }

        return false;
    }
protected function supportsCommonTableExpressionQuery()
    {
        $driver = DB::connection()->getDriverName();

        if ($driver == 'mysql') {
            return true;
        }

        if ($driver == 'sqlite' && \SQLite3::version()['versionNumber'] >= 3008003) {
            return true;
        }

        return false;
    }
protected function supportsCommonTableExpressionQuery ( ) { $ driver = DB :: connection ( ) -> getDriverName ( ) ; if ( $ driver == 'mysql' ) { return true ; } if ( $ driver == 'sqlite' && \ SQLite3 :: version ( ) [ 'versionNumber' ] >= 3008003 ) { return true ; } return false ; }
Tests if the driver supports Common Table Expression.

If it doesn't we'll fall back to a manually recursive query.

@return bool
Tests if the driver supports Common Table Expression .