src/Database/Drivers/MysqlDriver.php
public static function connect($host = null, $database = null, $user = null, $password = null)
    {
        if (config('app.setup')) {
            self::$connection = new MysqlConnector($host, $database, $user, $password);
            self::$server = self::$connection->connector;
        }

        return self::$server;
    }
public static function connect($host = null, $database = null, $user = null, $password = null)
    {
        if (config('app.setup')) {
            self::$connection = new MysqlConnector($host, $database, $user, $password);
            self::$server = self::$connection->connector;
        }

        return self::$server;
    }
public static function connect ( $ host = null , $ database = null , $ user = null , $ password = null ) { if ( config ( 'app.setup' ) ) { self :: $ connection = new MysqlConnector ( $ host , $ database , $ user , $ password ) ; self :: $ server = self :: $ connection -> connector ; } return self :: $ server ; }
Connect to Mysql database server.

@param string, string, string, string

@return PDO
Connect to Mysql database server .