Builder
class Builder extends Builder
Methods
Search through any columns on current table or any defined relations and return results ordered by search relevance.
Get driver-specific case insensitive like operator.
Prefix selected columns with table name in order to avoid collisions.
Join related tables.
Left join related tables.
Right join related tables.
Set search query parser factory instance.
Set the relations joiner factory instance.
Call base Eloquent method.
Execute the query as a "select" statement.
Set the columns to be selected.
Add where constraint to the query.
Add an "or where" clause to the query.
Add a where between statement to the query.
Add an or where between statement to the query.
Add a where not between statement to the query.
Add an or where not between statement to the query.
Add a "where in" clause to the query.
Add an "or where in" clause to the query.
Add a "where not in" clause to the query.
Add an "or where not in" clause to the query.
Add a "where null" clause to the query.
Add an "or where null" clause to the query.
Add a "where not null" clause to the query.
Add an "or where not null" clause to the query.
Add a "where date" statement to the query.
Add a "where day" statement to the query.
Add a "where month" statement to the query.
Add a "where year" statement to the query.
Add an exists clause to the query.
Add an "order by" clause to the query.
Add an "order by" clause for a timestamp to the query.
Add an "order by" clause for a timestamp to the query.
Pluck a single column from the database.
Execute an aggregate function on the database.
Retrieve the minimum value of a given column.
Retrieve the maximum value of a given column.
Retrieve the average of the values of a given column.
Retrieve the sum of the values of a given column.
Retrieve the "count" result of the query.
Get an array with the values of a given column.
Details
at line 81
$this
search(array|string $query, array $columns = null, boolean $fulltext = true, float $threshold = null)
Search through any columns on current table or any defined relations and return results ordered by search relevance.
at line 432
string
getLikeOperator()
Get driver-specific case insensitive like operator.
at line 488
void
prefixColumnsForJoin()
Prefix selected columns with table name in order to avoid collisions.
at line 510
$this
joinRelations(array|string $relations, string $type = 'inner')
Join related tables.
at line 533
$this
leftJoinRelations(array|string $relations)
Left join related tables.
at line 546
$this
rightJoinRelations(array|string $relations)
Right join related tables.
at line 558
static
setParserFactory(ParserFactory $factory)
Set search query parser factory instance.
at line 568
static
setJoinerFactory(JoinerFactory $factory)
Set the relations joiner factory instance.
at line 586
mixed
callParent(string $method, array $args)
Call base Eloquent method.
at line 644
Collection
get(array $columns = array('*'))
Execute the query as a "select" statement.
at line 659
$this
select(array $columns = array('*'))
Set the columns to be selected.
at line 675
$this
where(mixed $column, string $operator = null, mixed $value = null, string $boolean = 'and')
Add where constraint to the query.
at line 694
$this
orWhere(string $column, string $operator = null, mixed $value = null)
Add an "or where" clause to the query.
at line 710
$this
whereBetween(string $column, array $values, string $boolean = 'and', boolean $not = false)
Add a where between statement to the query.
at line 728
$this
orWhereBetween(string $column, array $values)
Add an or where between statement to the query.
at line 741
$this
whereNotBetween(string $column, array $values, string $boolean = 'and')
Add a where not between statement to the query.
at line 753
$this
orWhereNotBetween(string $column, array $values)
Add an or where not between statement to the query.
at line 768
$this
whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false)
Add a "where in" clause to the query.
at line 780
$this
orWhereIn(string $column, mixed $values)
Add an "or where in" clause to the query.
at line 793
$this
whereNotIn(string $column, mixed $values, string $boolean = 'and')
Add a "where not in" clause to the query.
at line 805
$this
orWhereNotIn(string $column, mixed $values)
Add an "or where not in" clause to the query.
at line 818
$this
whereNull(string $column, string $boolean = 'and', bool $not = false)
Add a "where null" clause to the query.
at line 829
$this
orWhereNull(string $column)
Add an "or where null" clause to the query.
at line 841
$this
whereNotNull(string $column, string $boolean = 'and')
Add a "where not null" clause to the query.
at line 852
$this
orWhereNotNull(string $column)
Add an "or where not null" clause to the query.
at line 881
$this
whereDate(string $column, string $operator, int $value, string $boolean = 'and')
Add a "where date" statement to the query.
at line 895
$this
whereDay(string $column, string $operator, int $value, string $boolean = 'and')
Add a "where day" statement to the query.
at line 909
$this
whereMonth(string $column, string $operator, int $value, string $boolean = 'and')
Add a "where month" statement to the query.
at line 923
$this
whereYear(string $column, string $operator, int $value, string $boolean = 'and')
Add a "where year" statement to the query.
at line 936
$this
whereExists(Closure $callback, string $boolean = 'and', bool $not = false)
Add an exists clause to the query.
at line 960
$this
orderBy(string $column, string $direction = 'asc')
Add an "order by" clause to the query.
at line 971
$this
latest(string $column = 'created_at')
Add an "order by" clause for a timestamp to the query.
at line 982
$this
oldest(string $column = 'created_at')
Add an "order by" clause for a timestamp to the query.
at line 993
mixed
pluck(string $column)
Pluck a single column from the database.
at line 1005
mixed
aggregate(string $function, array $columns = array('*'))
Execute an aggregate function on the database.
at line 1018
mixed
min(string $column)
Retrieve the minimum value of a given column.
at line 1029
mixed
max(string $column)
Retrieve the maximum value of a given column.
at line 1040
mixed
avg(string $column)
Retrieve the average of the values of a given column.
at line 1051
mixed
sum(string $column)
Retrieve the sum of the values of a given column.
at line 1062
int
count(string $columns = '*')
Retrieve the "count" result of the query.
at line 1074
array
lists(string $column, string $key = null)
Get an array with the values of a given column.
at line 1084
Builder
newQuery()
Get a new instance of the Eloquence query builder.