public function index($columns, $name = NULL, $algorithm = NULL)
    {
        $conn = $this->connection->getConnection();
        $db = r\db($this->connection->getDatabaseName());
        $db->table($this->table)->indexCreate($column)
            ->run($conn);

        return $this;
    }
public function index($columns, $name = NULL, $algorithm = NULL)
    {
        $conn = $this->connection->getConnection();
        $db = r\db($this->connection->getDatabaseName());
        $db->table($this->table)->indexCreate($column)
            ->run($conn);

        return $this;
    }
public function index ( $ columns , $ name = NULL , $ algorithm = NULL ) { $ conn = $ this -> connection -> getConnection ( ) ; $ db = r \ db ( $ this -> connection -> getDatabaseName ( ) ) ; $ db -> table ( $ this -> table ) -> indexCreate ( $ column ) -> run ( $ conn ) ; return $ this ; }
Specify an index for the collection.

@param string $column
@param mixed  $options

@return Blueprint
Specify an index for the collection .