dep: package update
This commit is contained in:
+27
-5
@@ -20,6 +20,7 @@ use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Traits\ForwardsCalls;
|
||||
use Illuminate\Support\Traits\Macroable;
|
||||
use InvalidArgumentException;
|
||||
use LogicException;
|
||||
use RuntimeException;
|
||||
|
||||
class Builder
|
||||
@@ -1960,7 +1961,7 @@ class Builder
|
||||
/**
|
||||
* Add an "order by" clause to the query.
|
||||
*
|
||||
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @param string $direction
|
||||
* @return $this
|
||||
*
|
||||
@@ -1993,7 +1994,7 @@ class Builder
|
||||
/**
|
||||
* Add a descending "order by" clause to the query.
|
||||
*
|
||||
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @return $this
|
||||
*/
|
||||
public function orderByDesc($column)
|
||||
@@ -2004,7 +2005,7 @@ class Builder
|
||||
/**
|
||||
* Add an "order by" clause for a timestamp to the query.
|
||||
*
|
||||
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @return $this
|
||||
*/
|
||||
public function latest($column = 'created_at')
|
||||
@@ -2015,7 +2016,7 @@ class Builder
|
||||
/**
|
||||
* Add an "order by" clause for a timestamp to the query.
|
||||
*
|
||||
* @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
|
||||
* @return $this
|
||||
*/
|
||||
public function oldest($column = 'created_at')
|
||||
@@ -3000,6 +3001,27 @@ class Builder
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Update records in a PostgreSQL database using the update from syntax.
|
||||
*
|
||||
* @param array $values
|
||||
* @return int
|
||||
*/
|
||||
public function updateFrom(array $values)
|
||||
{
|
||||
if (! method_exists($this->grammar, 'compileUpdateFrom')) {
|
||||
throw new LogicException('This database engine does not support the updateFrom method.');
|
||||
}
|
||||
|
||||
$this->applyBeforeQueryCallbacks();
|
||||
|
||||
$sql = $this->grammar->compileUpdateFrom($this, $values);
|
||||
|
||||
return $this->connection->update($sql, $this->cleanBindings(
|
||||
$this->grammar->prepareBindingsForUpdateFrom($this->bindings, $values)
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Insert or update a record matching the attributes, and fill it with values.
|
||||
*
|
||||
@@ -3402,7 +3424,7 @@ class Builder
|
||||
/**
|
||||
* Die and dump the current SQL and bindings.
|
||||
*
|
||||
* @return void
|
||||
* @return never
|
||||
*/
|
||||
public function dd()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user