Builder::when()

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

Builder::whereBetween()

$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

Builder::when()

$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

Builder::value()

mixed value(string $column) Get a single column's value from the first result of a query. Parameters string $column Return Value mixed

Builder::value()

mixed value(string $column) Get a single column's value from the first result of a query. Parameters string $column Return Value mixed

Builder::useWritePdo()

$this useWritePdo() Use the write pdo for query. Return Value $this

Builder::updateOrCreate()

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

Builder::updateOrInsert()

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::unionAll()

Builder|Builder unionAll(Builder|Closure $query) Add a union all statement to the query. Parameters Builder|Closure $query Return Value Builder|Builder

Builder::update()

int update(array $values) Update a record in the database. Parameters array $values Return Value int