class
Illuminate
/
Database
/
Query
/
JoinClause
You are viewing an older version of the documentation. For the latest, please visit master documentation.
JoinClause
Extends
Properties
public
$type string
The type of join being performed.
Default: null
public
$table string
The table the join clause is joining to.
Default: null
protected
$parentConnection ConnectionInterface
The connection of the parent query builder.
Default: null
protected
$parentClass string
The class name of the parent query builder.
Default: null
Methods
public
__construct ( Builder $parentQuery , $type , $table ) : void
Create a new join clause instance.
Parameters
- $parentQuery Builder
- $type string
- $table string
public
on ( $first , $operator , $second , $boolean ) : $this
Add an "on" clause to the join.
Parameters
- $first Closure |string
- $operator string|null
- $second Expression |string|null
- $boolean string
public
orOn ( $first , $operator , $second ) : JoinClause
Add an "or on" clause to the join.
Parameters
- $first Closure |string
- $operator string|null
- $second Expression |string|null