src/tools/MbMigration.php
public static function enablePdoConnection()
    {
        if (is_null(self::$instance)) {
            global $wpdb;

            $capsule = new self();
            $capsule->addConnection([
                'driver'    => 'mysql',
                'host'      => DB_HOST,
                'database'  => DB_NAME,
                'username'  => DB_USER,
                'password'  => DB_PASSWORD,
                'charset'   => 'utf8mb4',
                'collation' => 'utf8mb4_general_ci',
            ]);
            $capsule->setAsGlobal();
            $capsule->bootEloquent();
        }
    }
public static function enablePdoConnection()
    {
        if (is_null(self::$instance)) {
            global $wpdb;

            $capsule = new self();
            $capsule->addConnection([
                'driver'    => 'mysql',
                'host'      => DB_HOST,
                'database'  => DB_NAME,
                'username'  => DB_USER,
                'password'  => DB_PASSWORD,
                'charset'   => 'utf8mb4',
                'collation' => 'utf8mb4_general_ci',
            ]);
            $capsule->setAsGlobal();
            $capsule->bootEloquent();
        }
    }
public static function enablePdoConnection ( ) { if ( is_null ( self :: $ instance ) ) { global $ wpdb ; $ capsule = new self ( ) ; $ capsule -> addConnection ( [ 'driver' => 'mysql' , 'host' => DB_HOST , 'database' => DB_NAME , 'username' => DB_USER , 'password' => DB_PASSWORD , 'charset' => 'utf8mb4' , 'collation' => 'utf8mb4_general_ci' , ] ) ; $ capsule -> setAsGlobal ( ) ; $ capsule -> bootEloquent ( ) ; } }
Enable PDO for eloquent

@return void
Enable PDO for eloquent