Builder::macro()

static void macro(string $name, callable $macro) Register a custom macro. Parameters string $name callable $macro Return Value void

Builder::macro()

void macro(string $name, Closure $callback) Extend the builder with a given callback. Parameters string $name Closure $callback Return Value void

Builder::lockForUpdate()

Builder lockForUpdate() Lock the selected rows in the table for updating. Return Value Builder

Builder::lock()

$this lock(bool $value = true) Lock the selected rows in the table. Parameters bool $value Return Value $this

Builder::limit()

$this limit(int $value) Set the "limit" value of the query. Parameters int $value Return Value $this

Builder::leftJoinWhere()

Builder|Builder leftJoinWhere(string $table, string $one, string $operator, string $two) Add a "join where" clause to the query. Parameters string $table string $one string $operator string $two Return Value Builder|Builder

Builder::leftJoin()

Builder|Builder leftJoin(string $table, string $first, string $operator = null, string $second = null) Add a left join to the query. Parameters string $table string $first string $operator string $second Return Value Builder|Builder

Builder::latest()

Builder|Builder latest(string $column = 'created_at') Add an "order by" clause for a timestamp to the query. Parameters string $column Return Value Builder|Builder

Builder::joinWhere()

Builder|Builder joinWhere(string $table, string $one, string $operator, string $two, string $type = 'inner') Add a "join where" clause to the query. Parameters string $table string $one string $operator string $two string $type Return Value Builder|Builder

Builder::join()

$this join(string $table, string $one, string $operator = null, string $two = null, string $type = 'inner', bool $where = false) Add a join clause to the query. Parameters string $table string $one string $operator string $two string $type bool $where Return Value $this