Builder when(bool $value, Closure $callback, Closure $default = null) Apply the callback's query changes if the given "value" is true. Parameters bool $value Closure $callback Closure $default Return Value Builder
$this whereBetween(string $column, array $values, string $boolean = 'and', bool $not = false) Add a where between statement to the query. Parameters string $column array $values string $boolean bool $not Return Value $this
$this when(bool $value, Closure $callback, Closure $default = null) Apply the callback's query changes if the given "value" is true. Parameters bool $value Closure $callback Closure $default Return Value $this
mixed value(string $column) Get a single column's value from the first result of a query. Parameters string $column Return Value mixed
$this useWritePdo() Use the write pdo for query. Return Value $this
Model updateOrCreate(array $attributes, array $values = array()) Create or update a record matching the attributes, and fill it with values. Parameters array $attributes array $values Return Value Model
bool updateOrInsert(array $attributes, array $values = array()) Insert or update a record matching the attributes, and fill it with values. Parameters array $attributes array $values Return Value bool
Builder|Builder unionAll(Builder|Closure $query) Add a union all statement to the query. Parameters Builder|Closure $query Return Value Builder|Builder
int update(array $values) Update a record in the database. Parameters array $values Return Value int
Page 892 of 996