public static function setupDatabaseResolver(PDO $pdo, $driverName = null, $tablePrefix = '')
	{
		// If Eloquent doesn't exist, then we must assume they are using their own providers.
		if (class_exists('Illuminate\Database\Eloquent\Model'))
		{
			if (is_null($driverName))
			{
				$driverName = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME);
			}

			Eloquent::setConnectionResolver(new ConnectionResolver($pdo, $driverName, $tablePrefix));
		}
	}
public static function setupDatabaseResolver(PDO $pdo, $driverName = null, $tablePrefix = '')
	{
		// If Eloquent doesn't exist, then we must assume they are using their own providers.
		if (class_exists('Illuminate\Database\Eloquent\Model'))
		{
			if (is_null($driverName))
			{
				$driverName = $pdo->getAttribute(PDO::ATTR_DRIVER_NAME);
			}

			Eloquent::setConnectionResolver(new ConnectionResolver($pdo, $driverName, $tablePrefix));
		}
	}
public static function setupDatabaseResolver ( PDO $ pdo , $ driverName = null , $ tablePrefix = '' ) { // If Eloquent doesn't exist, then we must assume they are using their own providers. if ( class_exists ( 'Illuminate\Database\Eloquent\Model' ) ) { if ( is_null ( $ driverName ) ) { $ driverName = $ pdo -> getAttribute ( PDO :: ATTR_DRIVER_NAME ) ; } Eloquent :: setConnectionResolver ( new ConnectionResolver ( $ pdo , $ driverName , $ tablePrefix ) ) ; } }
Sets up the Eloquent Connection Resolver with the given PDO connection.

@param  PDO    $pdo
@param  string $driverName
@param  string $tablePrefix
@return void
Sets up the Eloquent Connection Resolver with the given PDO connection .