src/Blueprint.php
protected function join($firsttable, $secondtable, Array $on, $type = 'inner') {
        $this->query->setJoin($firsttable, $secondtable, $on, strtoupper($type));
        return $this;
    }
protected function join($firsttable, $secondtable, Array $on, $type = 'inner') {
        $this->query->setJoin($firsttable, $secondtable, $on, strtoupper($type));
        return $this;
    }
protected function join ( $ firsttable , $ secondtable , Array $ on , $ type = 'inner' ) { $ this -> query -> setJoin ( $ firsttable , $ secondtable , $ on , strtoupper ( $ type ) ) ; return $ this ; }
Adds a JOIN clause

@param $firsttable - tablename
@param $secondtable - tablename
@param array $on - must be in the format array('firsttablecolumn' => 'secondtablecolumn, ...)
@param string $type - inner|full|left|right
@return $this
Adds a JOIN clause