JoinClause::on()

$this on(Closure|string $first, string|null $operator = null, string|null $second = null, string $boolean = 'and')

Add an "on" clause to the join.

On clauses can be chained, e.g.

$join->on('contacts.userid', '=', 'users.id') ->on('contacts.infoid', '=', 'info.id')

will produce the following SQL:

on contacts.user_id = users.id and contacts.info_id = info.id

Parameters

Closure|string $first
string|null $operator
string|null $second
string $boolean

Return Value

$this

Exceptions

InvalidArgumentException
doc_Laravel
2016-11-02 16:22:34
Comments
Leave a Comment

Please login to continue.